Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If all of the infrastructure is going to be upgraded to a tested configuration, it is a matter of merging the new configuration to the current branch of the r10k repo. For instance, to upgrade the whole skyhigh platform to the Liberty release a merge of the master-branch at tag "v0.3.0" is performed into the skyhigh branch by the following commands:

Code Block
linenumbers
languagebash
titleMerge "v0.3.0" into skyhigh
firstline1true
$ git checkout skyhigh
$ git merge "v0.3.0"

After the merge it can be smart to edit the Puppetfile to also download the same versions of the role and profile repos:

bash
Code Block
language
titleTrack the correct repos
firstline1linenumberstrue
  mod 'role',
   :git => 'https://github.com/ntnusky/role.git',
-  :tag => 'master'
+  :tag => 'v0.3.0'
 
 mod 'profile',
   :git => 'https://github.com/ntnusky/profile.git',
-  :tag => 'master'
+  :tag => 'v0.3.0'

When one is ready to start the upgrade, the modules of the environment skyhigh can be deployed on the manager like so:

Code Block
titleDeploy puppet modules using r10k
languagebash
titleMerge "v0.3.0" into skyhigh
firstline1linenumberstrue
root@manager:~# r10k deploy environment skyhigh -vp

...