Change the module installation directory

If needed, you can change the directory where r10k installs modules declared in your Puppetfile.

By default, r10k installs module content in a modules directory in the same directory the Puppetfile is in, such as: ./modules/<MODULE_NAME>

To change the module installation path, at the top of your Puppetfile before any module declarations, add the moduledir directive, and specify the path to the desired module installation directory relative to the Puppetfile's location. For example:

moduledir 'thirdparty'

This directive applies to all content declared in the Puppetfile.

If you need to change the installation paths for only some modules or data, declare those content sources as Git repositories, and use the install_path option to Specify installation paths for repositories . This option overrides the moduledir directive.