Last active
March 30, 2016 18:40
-
-
Save Spankalish/4a7bc706d559557339909e53e7d88c28 to your computer and use it in GitHub Desktop.
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 | |
disable server in haproxy:
local.cmd.run:
- tgt: LB
- arg:
- 'echo "disable server here/salt-minion1" | socat stdio /var/lib/haproxy/stats'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cat myexample.sls
Then you'd run it like this:
salt 'LB' state.sls myexample