Differences between revisions 9 and 10
Revision 9 as of 2018-05-12 02:20:20
Size: 1545
Editor: PieterSmit
Comment:
Revision 10 as of 2018-05-12 06:26:06
Size: 1682
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
 * Use pip {{{
$ sudo pip install salt==2018.3.0rc1
   }}}

 or
   
Line 25: Line 31:
 * git remote add upstream https://github.com/saltstack/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

Run from dev branch

  • Use pip

    $ sudo pip install salt==2018.3.0rc1
    or
  • $ git clone git@github.com:saltstack/salt.git

  • git remote add upstream https://github.com/saltstack/salt

  • $ git fetch --tags
  • virtualenv salt
  • source ./salt/bin/activate
  • pip install -e ./salt

...

SaltStack (last edited 2019-06-16 10:28:54 by PieterSmit)