Anonymous
Not logged in
Log in
Request account
Search
Changes
From Pumping Station One
Namespaces
Page
Discussion
More
More
Languages
Page actions
Read
View source
History
← Older edit
Newer edit →
Salt
(view source)
Revision as of 01:35, 4 September 2014
947 bytes added
,
01:35, 4 September 2014
no edit summary
Line 1:
Line 1:
−
−
== Adding a new box ==
== Adding a new box ==
Line 9:
Line 7:
sudo salt-key -a foobox
sudo salt-key -a foobox
sudo salt 'foobox' state.highstate
sudo salt 'foobox' state.highstate
+
+
== Changeing salt config ==
+
+
* Make your changes in /srv/salt/
+
+
=== Test your changes ===
+
Test your changes. Testing against a single box is wiser than testing against the entire network
+
+
sudo salt 'sally.ad.pumpingstationone.org' state.highstate test=True
+
+
+
If you are satisfied, run the command for real
+
+
sudo salt 'sally.ad.pumpingstationone.org' state.highstate
+
+
+
reboot the box and make sure it still comes back up and works correctly.
+
+
=== Deploying changes ===
+
+
sudo salt '*' state.highstate
+
+
+
+
== Upgrading Everything ==
+
+
test the upgrade against a single box
+
+
sudo salt 'sally.ad.pumpingstationone.org' pkg.upgrade
+
sudo salt 'sally.ad.pumpingstationone.org' cmd.run 'reboot'
+
+
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.
+
+
sudo salt '*' pkg.upgrade
Hef
Bureaucrats
,
Administrators
3,430
edits
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
Userpage tools
More
Printable version