Inicial > Uncategorized > instalando o puppet e dicas de erro.

instalando o puppet e dicas de erro.

This is part one on how to install a Puppet 2.76 Server using Passenger (mod_passenger) with MySQL (for stored configurations) on Centos 6 or Red Hat Enterprise 6. In this first part we will get a Puppet/WEBrick server serving a single Puppet client.

Firstly, ensure the FQDN (i.e. 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 server = Puppet client

Next, add a puppet.repo to /etc/yum.repos.d/ on both server and client:

name=Puppet Labs Packages
name=Puppet Labs Packages Deps

Also, add the EPEL repository.

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.

Let’s see if the Puppet server and client can communicate with each other. Note, you may need to open up your firewall for this to work, so open port 8140 on the Puppet server to allow the Puppet client access. For iptables:

[root@puppet]# iptables -I INPUT -s -m tcp -p tcp –dport 8140 -j ACCEPT

Save the iptables and restart the service.

Next, on the client, generate a SSL certificate request:

[root@pclient]# puppetd –waitforcert 30 –server -v

On the server check whether it has received the request:

[root@puppet]# puppetca -l

If it has worked, the output should be similar to: xxxxxxxxxxxxxxxx

Then sign the request:

[root@puppet]# puppetca -s

If you run into any problems with generating or signing the certificates, check in the /var/lib/puppet/ssl directory and remove them if necessary. You can also run puppetca -c which revokes the certificate.

Check if everything is working by running this on the client:

[root@pclient]# puppetd –debug –server

This will output any errors if there are any.

Now you should have a working Puppet server communicating with a Puppet client, in part two we will get Passenger installed.


  1. Nenhum comentário ainda.
  1. No trackbacks yet.

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do

Você está comentando utilizando sua conta Sair /  Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair /  Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair /  Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair /  Alterar )


Conectando a %s

%d blogueiros gostam disto: