Configuring the r10k base directory

The r10k base directory specifies the path where environments are created for your control repo.

This directory is entirely managed by r10k, and any contents that r10k did not put there are removed. If r10k_basedir is not set, it uses the default environmentpath in your puppet.conf file.

The r10k_basedir parameter accepts a string-formatted path, such as: /etc/puppetlabs/code/environments

The r10k_basedir setting must match the environmentpath in your puppet.conf file, or Puppet can't access your new directory environments. For details about this setting, refer to environmentpath in the open source Puppet documentation.

If you have multiple source repos, you must specify the basedir for each source (in the sources parameter) instead of the global r10k_basedir setting. Specifying both base directory settings causes errors.