kindwolf.org Git repositories xavierg-snippets / master saltstack-driven-system-upgrades / salt-stable-upgrades
master

Tree @master (Download .tar.gz)

salt-stable-upgrades @masterraw · history · blame

1
2
3
4
5
#!/bin/bash
for codename in jessie stretch; do
	salt -C "G@lsb_distrib_codename:${codename}" -b 1 pkg.upgrade dist_upgrade=True
	salt -C "G@lsb_distrib_codename:${codename}" -b 2 cmd.run 'git -C /opt/diff-so-fancy pull'
done