This file contains hidden or 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
import yaml | |
import jinja2 | |
print jinja2.Template(open('PATH/files/FILE.jinja').read()).render(pillar=yaml.load(open('pillar.example'))) |
This file contains hidden or 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
usr_dir: | |
file.directory: | |
- name: /usr/dir |
This file contains hidden or 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
dep/init.sls | |
------------ | |
pkg.install: | |
- name: my_awesome_package | |
dep/dep1.sls | |
------------ | |
include: |
This file contains hidden or 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
MYENVVAR="world" salt-call state.template test.sls |
This file contains hidden or 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
/srv/salt/nginx/init.sls | |
------------------------ | |
install_nginx: | |
pkg: | |
- installed | |
- name: nginx | |
/srv/salt/nginx/config.sls |
This file contains hidden or 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
install_at: | |
pkg: | |
- installed | |
- name: at | |
restart_minion: | |
at: | |
- present | |
- job: 'service salt-minion restart' | |
- timespec: 'now + 1 minute' |
This file contains hidden or 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
unzip_jboss: | |
archive: | |
- extracted | |
- name: /path/to/jboss_dir | |
- source: http://whereverjbossis.com/jboss.zip | |
- archive_format: zip | |
run_jboss_command: | |
command: | |
- run |
This file contains hidden or 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
checking consistency... /root/salt-test/salt/doc/topics/transports/raet/index.rst:: WARNING: document isn't included in any toctree | |
/root/salt-test/salt/doc/topics/transports/raet/programming_intro.rst:: WARNING: document isn't included in any toctree | |
/root/salt-test/salt/doc/topics/troubleshooting/master.rst:: WARNING: document isn't included in any toctree | |
/root/salt-test/salt/doc/topics/troubleshooting/minion.rst:: WARNING: document isn't included in any toctree | |
/root/salt-test/salt/doc/topics/troubleshooting/yaml_idiosyncrasies.rst:: WARNING: document isn't included in any toctree |
This file contains hidden or 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
highstate_run: | |
cmd.state.highstate: | |
- tgt: | |
- redis | |
- learnerator-load |