This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!py | |
""" | |
Generates a master config snippet which contains one environment per user, so | |
you can test your salt configuration without commiting to the repository. This | |
way, you can run salt straight from your home directory like this: | |
salt-call state.highstate saltenv=$LOGNAME test=True | |
Remove test=True to actually execute the changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/salt/master.d/pvv.conf: | |
file.managed: | |
- source: salt://{{ tpldir }}/master.d/pvv.conf.py | |
- template: py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/service/postfix/run: | |
file.managed: | |
- contents: ... | |
/etc/postfix/main.cf | |
file.managed: | |
- source: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A tarball with the sources | |
/root/whatever.tar.gz: | |
file.managed: | |
- source: salt://whatever/whatever.tar.gz | |
# A script for installing the sources | |
/usr/local/sbin/install-whatever.sh: | |
cmd.wait: | |
- watch: | |
- file: /usr/local/sbin/install-whatever.sh |