How can I fix puppet refusing to start and asking for "master.pp"?

Posted by cwd on Server Fault See other posts from Server Fault or by cwd
Published on 2011-11-18T22:47:55Z Indexed on 2011/11/19 1:53 UTC
Read the original article Hit count: 328

Filed under:
|
|
|
|

I'm using the very latest version of puppet and have been following the Apress "Pro Puppet" guide step by step. I have installed puppet

sudo aptitude install ruby libshadow-ruby1.8
sudo aptitude install puppet puppetmaster facter

I have edited /etc/puppet/puppet.conf to include certname

[master]
certname=puppet.mydomain.com

I have edited /etc/hosts and added the following line

127.0.0.1 puppet.mydomain.com puppet

I have set the hostname of the server

echo "puppet.mydomain.com" > /etc/hostname
hostname -F /etc/hostname

And then I try and run puppet from the command line.

puppet master --verbose --no-daemonize

And puppet gives me this error:

Could not parse for environment production:
Could not find file /master.pp

I'm running all commands with sudo and the last line of the error message always says that it can't find master.pp and the path before it is to my current working directory.

What am I doing wrong?

I should also mention that I don't have a DNS record set up for puppet.mydomain.com - I saw some online documentation mentioning this might be a problem - however I was fairly sure that the hosts file would let me get around that.

© Server Fault or respective owner

Related posts about linux

Related posts about unix