What Is the Equivalent of “find where the site.pp file should go on the Puppet Master”?

Problem scenario
You are managing a Puppet master server.  You want to find where the site.pp file should be.  Where do you look to determine the configuration?

The result of this command is the canonical answer:
puppet master --configprint manifest

If the above returns "No manifest", then run this command:
sudo puppet master --configprint all | grep basemodule

One of the paths resulting from the above command could be the answer to your question.  You may need to build out a directory tree on the Puppet master server with a command like this:

mkdir -p /etc/puppet/code/environments/production/manifests/

Leave a comment

Your email address will not be published. Required fields are marked *