### Salt Upgrade 3001.6 -> 3002.6 Notes.md


next time try this: `salt/fileroots/os_modifications/minion_upgrade.sls` ( move it to the salt folder or something )

upgrade salt master then minions

Update the pillar in git
```
salt salt* cmd.run 'salt-run fileserver.update'
salt salt* cmd.run 'salt-run git_pillar.update'
salt salt* saltutil.refresh_pillar
salt salt* pillar.get yumrepos:salt:version
```

Update salt master 
```
salt salt* cmd.run 'cat /etc/yum.repos.d/salt.repo'
salt salt* state.sls os_modifications.repo_update test=true --output-diff
salt salt* cmd.run 'cat /etc/yum.repos.d/salt.repo'
salt salt* cmd.run 'yum clean all ; yum makecache fast'
salt salt* cmd.run 'yum check-update | grep salt'
salt salt* pkg.upgrade name=salt-master
sudo salt salt* state.sls salt_master.salt_posix_acl --output-diff
```

Update salt minions
```
salt sensu* cmd.run 'cat /etc/yum.repos.d/salt.repo'
salt sensu* state.sls os_modifications.repo_update test=true --output-diff
salt sensu* cmd.run 'cat /etc/yum.repos.d/salt.repo'
salt sensu* cmd.run 'yum clean all ; yum makecache fast'
salt sensu* cmd.run 'yum check-update | grep salt'
salt sensu* cmd.run_bg 'systemd-run --scope yum update salt-minion -y && sleep 20 && systemctl daemon-reload && sleep 20 && systemctl start salt-minion'
salt sensu* test.version
```

Did you miss any?
`salt -G saltversion:3001.6 test.ping`

repeat for PROD. 