I m running puppet latest version. 2.7.1
but there is no such file as /etc/puppet/puppet.conf
How would i define different manifest files for different environment.
i had manually created puppet.conf file and added following content into it.
# cat /etc/puppet/puppet.conf
manifest = /etc/puppet/manifests/site.pp
manifest = /etc/puppet/manifests/site2.pp
but whenever i run this on my puppet client i get following error.
# puppet agent --server --environment dev PuppetMaster.domain.com --waitforcert 60 --test
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: Name or service not known
when i run it without specifying environment then it works fine.
# puppet agent --server PuppetMaster.domain.com --waitforcert 60 --test
info: Caching catalog for puppetclient.domain.com
info: Applying configuration version '1310635621'
notice: Finished catalog run in 0.31 seconds
Also for starting puppet master i use following command.
How would i start it automatically after system reboot?
puppet master --mkusers
Which command to use to stop master daemon?