Hi Bhaskar,
Assuming you have installed it properly download
this tar.gz file and put it in
/etc folder.
First, unzip it and then untar it.
Also, do this if you have installed from
source files.
Code:
groupadd puppet
useradd -g puppet puppet
chown -R puppet.puppet /var/lib/puppet
Then,
Code:
cp -p /etc/puppet/manifests/nodes.pp /etc/puppet/manifests/nodes.pp_orig
> /etc/puppet/manifests/nodes.pp
cat /etc/puppet/manifests/nodes.pp
class test1 {
exec { "/bin/echo hello > /tmp/vikas": }
exec { "/bin/echo vikas >> /tmp/vikas": }
}
node box1 { ## Assuming your machine name is box1
include "test1"
}
Finally, you can
start you puppet as below
Code:
# service puppetmaster stop
# /usr/sbin/puppetmasterd --logdest console
# /usr/sbin/puppetd --server box1.test.com --verbose --waitforcert 30
# /usr/sbin/puppetca --list
box1.test.com --- you should see your system hostname here.
/usr/sbin/puppetca --sign box1.test.com
To check if all worked well, try below command
Code:
puppetd --test --server=box1.test.com --debug
This should create a file /tmp/vikas
Try this and get back if you still face problems.