Set up your prerequisites
Before writing content for roles and profiles, you need to create modules to store them in.
- Create one module for
profile
and one forrole
directly in your control repo. Do not put them in your Puppetfile. - Make a new directory in the control repo named
site
. For example,/etc/puppetlabs/code/environments/production/site
. - Add
site
to themodulepath
in theenvironment.conf
file. Themodulepath
is the place where Puppet looks for module information. For example:modulepath = site:modules:$basemodulepath
. - Put the
role
andprofile
modules in thesite
directory.