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
reactor: | |
- 'salt/minion/*repo*/start': | |
- salt://salt/reactor/repo_start.sls |
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
# See http://serverfault.com/questions/538218/deploy-ssh-key-from-master-to-minion-via-salt-pillars | |
{% for user, data in salt['pillar.get']('users', {}).iteritems() %} | |
add_{{ user }}: | |
user.present: | |
uid: {{ data['uid'] }} | |
{% endfor %} | |
# vim : set ft=yaml tabstop=2 sts=2 sw=2 et ai si |
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
# Tell each db server to run the pgsql command to coalesce the database | |
coalesce_db: | |
salt.function: | |
- name: postgres.psql_query | |
- tgt: 'tags:db' | |
- tgt_type: grain | |
- arg: | |
- "select pg_start_backup('foo');" | |
# we want our salt master to run the cloud snapshot script |
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/60reactor.conf | |
# reactor config for salt master | |
reactor: | |
- 'salt/minion/*/start': | |
- salt://salt/reactor/sync_all.sls |
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
salt: | |
minion: | |
grains: | |
roles: | |
- salt_master |
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
mine_functions: | |
#test.ping: [] | |
network.interfaces: [] | |
network.get_hostname: [] | |
disk.usage: [] | |
grains.item: | |
- tags | |
- roles |
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
mysql: | |
# Manage databases | |
database: | |
- foo | |
- bar | |
schema: | |
foo: | |
load: True | |
source: salt://mysql/files/foo.schema | |
bar: |
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
nginx: | |
rootdir: /data/installer | |
server-name: dev.domain.com |
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
sudo salt '*repo*' state.sls aptly.publish_repos | |
dev-repo01.c.oncenter-oasis-dns-project.oncenter.com.internal: | |
---------- | |
ID: import_gpg_pub_key | |
Function: cmd.run | |
Name: gpg --no-tty --import /var/lib/aptly/repo/public/public.gpg | |
Result: False | |
Comment: Command "gpg --no-tty --import /var/lib/aptly/repo/public/public.gpg" run | |
Started: 23:46:37.022431 | |
Duration: 102.384 ms |
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
reactor: | |
- 'salt/minion/*/start': | |
- /srv/reactor/sync_all.sls | |
- /srv/reactor/graphite_event.sls |