877
Comment:
|
1545
|
Deletions are marked like this. | Additions are marked like this. |
Line 13: | Line 13: |
== Cloud deploy salt-cloud == * With python debug pudb * sudo pudb /usr/bin/salt-cloud --log-level info --map=/etc/salt/cloud.maps.d/softlayer-maps-SVRCONFIG-SALTMASTER.conf |
|
Line 14: | Line 17: |
== Fix salt-stack apt repo to stable version == * edit /etc/apt/sources.list/saltstack.list * deb https://repo.saltstack.com/apt/ubuntu/14.04/amd64/2017.7 trusty main * Fix {{{ NO_PUBKEY 0E08A149DE57BFBE }}} * sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E08A149DE57BFBE == Run from dev branch == * $ git clone git@github.com:saltstack/salt.git * $ git fetch --tags * virtualenv salt * source ./salt/bin/activate * * pip install -e ./salt |
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"
Cloud deploy salt-cloud
- With python debug pudb
- sudo pudb /usr/bin/salt-cloud --log-level info --map=/etc/salt/cloud.maps.d/softlayer-maps-SVRCONFIG-SALTMASTER.conf
Fix salt-stack apt repo to stable version
- edit /etc/apt/sources.list/saltstack.list
deb https://repo.saltstack.com/apt/ubuntu/14.04/amd64/2017.7 trusty main
Fix NO_PUBKEY 0E08A149DE57BFBE
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E08A149DE57BFBE
Run from dev branch
$ git clone git@github.com:saltstack/salt.git
- $ git fetch --tags
- virtualenv salt
- source ./salt/bin/activate
- pip install -e ./salt
Links
Online yaml parser - http://yaml-online-parser.appspot.com/
http://seedickcode.com/devops/saltstack/saltstack-a-better-salt-top-sls-part-2/
- surveys
...