Início > Uncategorized > instalando o puppet e dicas de erro.

instalando o puppet e dicas de erro.

27
NOV/11
0
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. 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

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 192.168.1.20 -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 puppet.tomhayman.co.uk -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:

pclient.tomhayman.co.uk xxxxxxxxxxxxxxxx

Then sign the request:

[root@puppet]# puppetca -s pclient.tomhayman.co.uk

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 pclient.tomhayman.co.uk which revokes the certificate.

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

[root@pclient]# puppetd –debug –server puppet.tomhayman.co.uk

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.

fonte: http://www.tomhayman.co.uk/linux/install-puppet-modpassenger-mysql-stored-procs-centos-6-rhel6/

Anúncios
Categorias:Uncategorized
  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 WordPress.com

Você está comentando utilizando sua conta WordPress.com. 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 )

Foto do Google+

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

Conectando a %s

%d blogueiros gostam disto: