I’m using 2 Ubuntu Lucid 10.10 for this setup.
On the server run:
apt-get install puppetmaster
At the time I’m writing this in the repos version 2.6.1 is available.
On the client run :
apt-get install puppet
Note that /etc/hosts needs to contain the IP and host of both client and server, e.g:
10.0.0.30 depot.server.org depot
10.0.0.31 n1.server.org n1
Create a default manifest file (/etc/puppet/manifests/site.pp) and put in it :
class test_class {
file { "/tmp/test":
ensure => present,
mode => 644,
owner => root,
group => root
}
}
# tell puppet on which client to run the class
node n1 {
include test_class
}
Then on the server run :
/etc/init.d/puppetmaster start
and on client :
puppetd –server depot.server.org –waitforcert 60 –test
After this you should see on the server a new host when running :
puppetca –list
In order to sign this host on the server side you need to run :
puppetca –sign n1.server.org
After this on the client side /tmp/test should be created.
The post Puppet howto Ubuntu appeared first on x83.net.