salt stack - Using SaltStack, how can I watch for *one* file change in a git repository? -
for example, have git.latest state this:
foobar: git.latest: - branch: production ...
i want define cmd.run
or cmd.wait
state runs if , if one particular file in foobar git repository has changed. don't care if other files of repo have changed.
how can that?
there doesn't seem obvious in current release of saltstack (2015.8.4)
if you're using github (or similar), use file.managed
watch file changes:
/tmp/egg: file.managed: - source: https://raw.githubusercontent.com/mafrosis/dotfiles/master/readme.md - source_hash: sha1=bf5b231d1b3dc9bc3217896f9f5d1c903b0779dd cmd.wait: - name: touch /tmp/bacon - watch: - file: /tmp/egg
Comments
Post a Comment