r10k accepts several command line actions, with options and subcommands.
r10k command actions
r10k includes several command line actions.
||Performs operations on environments. Accepts |
||Displays the r10k help page in the terminal.|
||Performs operations on a Puppetfile. Accepts |
||Displays your r10k version in the terminal.|
r10k command options
r10k commands accept the following options.
|Enables color coded log messages.|
|Shows help for this command.|
|Displays stack traces on application crash.|
|Sets log verbosity. Valid values: fatal, error, warn, notice, info, debug, debug1, debug2.|
r10k deploy subcommands
You can use the following subcommands with the
r10k deploy command.
r10k deploy --display
|Displays a list of environments in your deployment.|
|Displays a list of modules in the Puppetfile.|
|Displays detailed information.|
|Update the environment sources. Allows you to check for missing environments.|
|Deploys environments and their specified modules.|
|Updates modules specified in the environment's Puppetfile.|
|Deploys a module in all environments|
|Updates all modules in a particular environment|
See the related topic about deploying environments with r10k for examples of
r10k deploy command use.
r10k puppetfile subcommands
r10k puppetfile command accepts several subcommands for managing modules.
r10k puppetfile install
These subcommands must be run as the user with write access to that environment’s modules directory. These commands interact with the Puppetfile in the current working directory, so before running the subcommand, make sure you are in the directory of the Puppetfile you want to use.
||Verifies the Puppetfile syntax is correct.|
||Installs all modules from a Puppetfile.|
||Installs modules from a custom Puppetfile path.|
||Installs modules from a Puppetfile to a custom module directory location.|
||Purges unmanaged modules from a Puppetfile managed directory.|