Puppet Installation
7:25 PM
This is part one on how to install a
Puppet Server using Passenger (mod_passenger) with MySQL (for stored
configurations) on Red Hat Enterprise 5. In this first part we will get
a Puppet/WEBrick server serving a single Puppet client.
Firstly, ensure the FQDN (i.e. puppet.tomhayman.co.uk) is set up properly on the server otherwise your Puppet clients will not be able to connect.
In this example, we're going to have the following setup:
puppet.tomhayman.co.uk 192.168.1.10 = Puppet server
pclient.tomhayman.co.uk 192.168.1.20 = Puppet client
Next, add a puppet.repo to /etc/yum.repos.d/ on both server and client:
puppetlabs
name=Puppet Labs Packages
baseurl=http://yum.puppetlabs.com/el/6/products/x86_64/
enabled=1
gpgcheck=0
puppetlabs2
name=Puppet Labs Packages Deps
baseurl=http://yum.puppetlabs.com/el/6/dependencies/x86_64/
enabled=1
gpgcheck=0
Now, install Puppet server on the server:
root@puppet# yum install puppet-server
And install the Puppet client on the client:
root@pclient# yum install puppet
Start the Puppet server to generate the SSL certificates:
root@puppet# service puppetmaster start
Check the SSL certificates have been generated by verifying their existence in /var/lib/puppet/ssl.
Firstly, ensure the FQDN (i.e. puppet.tomhayman.co.uk) is set up properly on the server otherwise your Puppet clients will not be able to connect.
In this example, we're going to have the following setup:
puppet.tomhayman.co.uk 192.168.1.10 = Puppet server
pclient.tomhayman.co.uk 192.168.1.20 = Puppet client
Next, add a puppet.repo to /etc/yum.repos.d/ on both server and client:
puppetlabs
name=Puppet Labs Packages
baseurl=http://yum.puppetlabs.com/el/6/products/x86_64/
enabled=1
gpgcheck=0
puppetlabs2
name=Puppet Labs Packages Deps
baseurl=http://yum.puppetlabs.com/el/6/dependencies/x86_64/
enabled=1
gpgcheck=0
Now, install Puppet server on the server:
root@puppet# yum install puppet-server
And install the Puppet client on the client:
root@pclient# yum install puppet
Start the Puppet server to generate the SSL certificates:
root@puppet# service puppetmaster start
Check the SSL certificates have been generated by verifying their existence in /var/lib/puppet/ssl.
0 comments