Managing code with r10k
r10k is a code management tool that allows you to manage your environment configurations (such as production, testing, and development) in a source control repository. Unlike Code Manager's automated deployments, r10k requires you to manually deploy code changes from your control repository using the r10k command line tool on your primary server and all compilers.
Based on the code in your control repository branches, r10k creates environments on your primary server and also installs and updates the modules you want in each environment.
Tip: Whenever possible, we recommend Managing code with Code Manager. Only use r10k if you cannot use Code Manager.
-
Set up r10k
You must set up r10k to use it as your code management tool. -
Configure r10k
To configure r10k in an existing Puppet Enterprise (PE) installation, set r10k parameters in the PE console. You can also use the console to adjust r10k settings. -
Customizing r10k configuration
Set parameters in Hiera to customize your r10k configuration. -
Deploying environments with r10k
Deploy environments on the command line with ther10k deploy
command. -
r10k command reference
Ther10k
command accepts actions, options, and subcommands.