Deploying environments with r10k

Deploy environments on the command line with the r10k deploy command.

The first time you run r10k, deploy all environments and modules by running:

r10k deploy environment

This command:

  1. Checks your control repository to see which branches are present.
  2. Maps those branches to the Puppet directory environments.
  3. Clones your Git repo and either creates (if this is your first run) or updates (if it is a subsequent run) your directory environments with the contents of your repo branches.

When running commands to deploy code on your primary server, r10k needs write access to your environment path. You need to run r10k as the pe-puppet user, as root, or use sudo. Running as root requires access control to the root user.

Related information