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.conf, in master.d--- | |
reactor: | |
- salt/states/base/nginx: | |
- /srv/salt/reactor/stop.sls | |
event on web server--- | |
disable_server_in_LB: | |
event: | |
- wait | |
- name: salt/states/base/nginx |
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
Master Terminal: Successful | |
sudo salt 'LB' cmd.run 'echo "disable server here/salt-minion1" | socat stdio /var/lib/haproxy/stats' | |
Master .sls file: Fail | |
disable server in haproxy: | |
- name: | | |
- tgt: 'LB' | |
echo "disable server here/salt-minion1" | socat stdio /var/lib/haproxy/stats | |
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
master.d/reactor.conf | |
reactor: | |
- 'salt/states/base/nginx_update': | |
- srv/salt/reactor/stop.sls | |
.sls file event | |
disable_server_in_LB: | |
event: | |
- wait | |
- name: salt/states/base/nginx_update |
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/apache2/sites-enabled/000-default.conf | |
file: | |
- managed | |
- absent |
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
Remove 000-default.conf: | |
file.absent: | |
- name: /etc/apache2/sites-enabled/000-default.conf | |
- require: | |
- pkg: apache2 |
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/apache2/sites-enabled: | |
file: | |
- managed | |
- source salt://LAMP/virtual-hosts.conf.jinja | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 644 |
OlderNewer