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?
Solution
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/