Skip to content

Instantly share code, notes, and snippets.

@felixhummel
Created August 2, 2013 13:20
Show Gist options
  • Save felixhummel/6139818 to your computer and use it in GitHub Desktop.
Save felixhummel/6139818 to your computer and use it in GitHub Desktop.
think master /srv/salt # salt-call --version
salt-call 0.15.1
think master /srv/salt # ls -la /tmp/y
-rw-r--r-- 1 root root 0 Aug 2 15:18 /tmp/y
think master /srv/salt #
think master /srv/salt # echo 'changed' > x
think master /srv/salt # salt-call --local state.sls filewatch
[INFO ] Configuration file path: /etc/salt/minion
[INFO ] Executing command 'ps -efH' in directory '/home/felix'
[INFO ] Loading fresh modules for state activity
[INFO ] Executing state file.touch for /tmp/y
[INFO ] No changes made for /tmp/y
[INFO ] Executing state file.managed for /tmp/x
[INFO ] File changed:
---
+++
@@ -1 +1 @@
-baz
+changed
local:
----------
State: - file
Name: /tmp/y
Function: touch
Result: True
Comment: Updated times on file /tmp/y
Changes:
----------
State: - file
Name: /tmp/x
Function: managed
Result: True
Comment: File /tmp/x updated
Changes: diff: ---
+++
@@ -1 +1 @@
-baz
+changed
think master /srv/salt # ls -la /tmp/y
-rw-r--r-- 1 root root 0 Aug 2 15:19 /tmp/y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment