Shell-Kommandos ausführen
date>/tmp/hello-salt.txt:
cmd.run:
- unless: test -e /tmp/hello-salt.txt
schöner:
date>/tmp/hello-salt.txt:
cmd.run:
- creates: /tmp/hello-salt.txt
/srv/salt/rmate.sls
rmate:
cmd.run:
- name: |
wget "https://raw.githubusercontent.com/sclukey/rmate-python/master/bin/rmate"
chmod +x rmate
- cwd: /usr/local/bin
- creates: /usr/local/bin/rmate