301
Comment:
|
877
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
* sudo salt-call --state-verbose=false state.apply == salt edit /etc/fstab == * Edit lines in fstab e.g. Match '''cloudimg-rootfs''' and set the last '''0''' to a '''1''' {{{ $ sudo salt "*" cmd.run "sed -i '/cloudimg-rootfs\s/ s/0$/1/ ; /cloudimg-bootfs\s/ s/0$/2/' /etc/fstab ; cat /etc/fstab" }}} |
|
Line 9: | Line 15: |
* Online yaml parser - http://yaml-online-parser.appspot.com/ |
|
Line 11: | Line 20: |
* surveys * http://stackoverflow.com/questions/18092979/how-can-i-aggregate-saltstack-command-results * https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.survey.html |
Salt Stack configuration management
- improve output of state.apply to a lot of minions
salt --state-output=mixed --summary "*" state.apply backups.deploy
- sudo salt-call --state-verbose=false state.apply
salt edit /etc/fstab
Edit lines in fstab e.g. Match cloudimg-rootfs and set the last 0 to a 1
$ sudo salt "*" cmd.run "sed -i '/cloudimg-rootfs\s/ s/0$/1/ ; /cloudimg-bootfs\s/ s/0$/2/' /etc/fstab ; cat /etc/fstab"
Links
Online yaml parser - http://yaml-online-parser.appspot.com/
http://seedickcode.com/devops/saltstack/saltstack-a-better-salt-top-sls-part-2/
- surveys
...