Change the module installation directory
If needed, you can change the directory to where code management installs modules declared in your Puppetfile.
By default, Code Manager and r10k install 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'
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.