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
ping_minions: | |
salt.function: | |
- name: test.ping | |
- tgt: 'E@{{ pillar.regex_primary }} and E@{{ pillar.regex_secondary }}' | |
- tgt_type: compound | |
install_primary_minion: | |
salt.function: | |
- name: state.highstate | |
- tgt: '{{ pillar.regex_primary }}' |
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
base: | |
#ROLE Assignments: | |
'E@go-agent\..+': | |
- go.role_go_agent | |
'E@dbarmor-(dev|acc).+': | |
- dbarmor.role_processor | |
'E@dbarmor-(dev|acc)0[1-2]\..+': | |
- dbarmor.role_web | |
'E@dbarmor-(dev|acc)01\..+': |
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
include: | |
- rabbitmq.latest | |
rabbit_cookie: | |
file.managed: | |
- name: /var/lib/rabbitmq/.erlang.cookie | |
- source: salt://myapp/erlang.cookie | |
- user: rabbitmq | |
- group: rabbitmq | |
- mode: 400 |
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
rabbitmq: | |
version: "3.5.4-1" | |
plugin: | |
rabbitmq_management: | |
- enabled | |
policy: | |
rabbitmq_policy: | |
- name: HA | |
- pattern: '.*' | |
- definition: '{"ha-mode": "all"}' |
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
#======================ORCHESTRATE OUTPUT =========================# | |
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt-test-minion.wp.bluecoat.com | |
[DEBUG ] Configuration file path: /etc/salt/master | |
[DEBUG ] LazyLoaded state.orchestrate | |
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-08-18T19:44:14.373060'} | |
[DEBUG ] Sending event - data = {'fun': 'runner.state.orchestrate', 'jid': '20150818134414371855', 'user': 'sudo_webpulse', '_stamp': '2015-08-18T19:44:14.373753'} | |
[DEBUG ] Error loading runners.nacl: libnacl import error, perhaps missing python libnacl package |
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
install_upstart_script: | |
file.managed: | |
- name: /etc/init/myapp-processor.conf | |
- source: salt://myapp/myapp-processor.conf | |
- mode: 644 | |
- user: root | |
- group: root | |
cmd.run: | |
- name: 'initctl reload-configuration' |
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
{% if grains['myapp_role'] == 'processor' %} | |
include: | |
- myapp.deploy_processor | |
{% endif %} | |
{% if grains['myapp_role'] == 'web' %} | |
include: | |
- myapp.deploy_webapp | |
{% endif %} |
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
include: | |
- oracle-java.oracle-java8 | |
tomcat7-admin-installer: | |
pkg.installed: | |
- name: tomcat7-admin | |
- require: | |
- pkg: tomcat7_installer | |
file.blockreplace: | |
- name: /var/lib/tomcat7/conf/tomcat-users.xml |
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
include: | |
- tomcat.tomcat7 | |
tomcat7_cleanup: | |
service.dead: | |
- name: tomcat7 | |
- sig: -Dcatalina.base=/var/lib/tomcat7 | |
file.directory: | |
- clean: True | |
- names: |
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
include: | |
tomcat7: ## Generic tomcat sls | |
extend: | |
tomcat7: | |
service.running: | |
- watch: | |
- file: my_config | |
- file: my_war | |
- require: |
NewerOlder