Onno
unread,Oct 5, 2014, 4:34:35 PM10/5/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to salt-...@googlegroups.com
Hi all,
My sls file:
--
cassandra-init-d:
file.managed:
- name: /etc/rc.d/init.d/cassandra
- source:
- salt://init-d/_etc_rc.d_init.d_cassandra.{{grains['id']}}
- salt://init-d/_etc_rc.d_init.d_cassandra
- mode: 755
- require:
- sls: daemonize
cassandra-log:
file.absent:
- name: /var/log/cassandra/cassandra.log
- watch:
- file: cassandra-init-d
cassandra-service:
service.running:
- name: cassandra
- watch:
- file: cassandra-log
--
In the first run, the id's "cassandra-init-d", "cassandra-log" and
"cassandra-service" are run. In the second run, the id's "cassandra-log"
and "cassandra-service" are run. I didn't expect to run anything at all
in the second run due to the "watch" in "cassandra-log"... What am I
doing wrong?
Regards,
Onno