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
httpd: | |
pkg: | |
- installed | |
service: | |
- running | |
- require: | |
- pkg: httpd | |
file: | |
- managed | |
- name: /etc/httpd/conf/httpd.conf |
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
git: | |
pkg: | |
- installed | |
- name: git core | |
/etc/git/gitconfig: | |
file: | |
- managed | |
- source: salt://git/gitconfig | |
- require: |
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
emacs: | |
pkg: | |
- installed | |
{% if grains['osrelease'].startswith('5') %} | |
- name: emacsBROKEN | |
{% endif %} |
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
""" | |
State module | |
============ | |
The state module for logical union of several states. | |
Available Functions | |
------------------- |
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
some_config: | |
file: | |
- managed | |
- source: salt://some_service/vtag | |
- require: # or require declaration | |
- file: /etc/some_service/conf_1.conf | |
- file: /etc/some_service/conf_2.conf | |
- file: /etc/some_service/conf_3.conf | |
some_service: |
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
file_roots: | |
base: | |
- /srv/salt/base | |
dev: | |
- /srv/salt/dev | |
- /srv/salt/base |
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
# Some config stuff | |
module_dirs: | |
{% if grains['fqdn'] == 'foo'%} | |
- /path/to/dir | |
{% endif %} |
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
Traceback (most recent call last): | |
File "/usr/bin/salt-call", line 21, in <module> | |
main() | |
File "/usr/bin/salt-call", line 17, in main | |
client.run() | |
File "/usr/lib/python2.7/site-packages/salt/cli/__init__.py", line 738, in run | |
caller.run() | |
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 112, in run | |
ret = self.call() | |
File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 46, in call |
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
apt-update: | |
cmd: | |
- wait | |
- name: /usr/bin/apt-get update | |
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
fred: | |
group: | |
- present | |
- gid: 2000 | |
user: | |
- present | |
- uid: 2000 | |
- gid: 2000 | |
- require: | |
- group: fred |