Salt: Difference between revisions

From Pumping Station One
Line 37: Line 37:
test the upgrade against a single box
test the upgrade against a single box


    sudo salt 'sally.ad.pumpingstationone.org' pkg.upgrade
<syntaxHighlight lang=bash>
    sudo salt 'sally.ad.pumpingstationone.org' cmd.run 'reboot'
sudo salt 'sally.ad.pumpingstationone.org' pkg.upgrade
sudo salt 'sally.ad.pumpingstationone.org' cmd.run 'reboot'
</syntaxHighlight>


After rebooting the test box, log back in and make sure everything appears to work correctly.
After rebooting the test box, log back in and make sure everything appears to work correctly.
Once you are satisfied you are not going to have a long night repairing the network, deploy upgrades everywhere.
Once you are satisfied you are not going to have a long night repairing the network, deploy upgrades everywhere.


    sudo salt '*' pkg.upgrade
<syntaxHighlight lang=bash>
sudo salt '*' pkg.upgrade
</syntaxHighlight>