Wednesday, May 21, 2014

Install and configure puppet on Linux (Redhat)

How To Install And Configure Puppet (Getting Puppet Up)  -- copied
Puppet is a system management tool used my many large and small enterprises to manage their infrastructure. From the top of my head Twitter, Wikipedia, Digg, Nokia, Rackspace are some of the companies using it and there is no reason that you cannot use it to manage that single server you love or the entire data center you own.
Installing puppet is not difficult but i"ll recommend installing puppet on Fedora/EL from tmz repo instead of the official repo. Official repo is generally out of date while tmz repo has latest builds. I don't know if some such repo exists for debian-like distributions. If you are interested in installing from source then you should check out this page. Puppet follows client - server architecture. So you need to run a server and a client (which can be on the same machine). Install "puppet" on the client side and "puppet-server" on the server side.
Now let us start with building the server:
Install and set up Puppet Server
1: Configure tmz repo and install puppet-server

# yum install puppet-server
2: Puppet, by default, looks for site.pp file in manifest directory. Let us create one, if not present already.
# mkdir /etc/puppet/manifests
# touch /etc/puppet/manifests/site.pp
3: Start the puppet master (a.k.a. server) using:
# service puppetmaster start
Install and set up Puppet Client
1: Tell the client where is the server by adding server entry in [main] section:
[main]
server=puppet.aditya.pa
2: Start the puppet client
# service puppet start
Puppet client will request a certificate from master. Now let us go to the master and sign the certificate.
Run the following command on puppet master:-
# puppet cert --list
Sign the correct certificate by:
puppet cert --sign fed1.aditya.pa
Our puppet is up and running and ready to use. I'll build some manifests and modules to manage applications in next post or if you want, you can catch me at Fedora Users and Developers Conference at Pune, India on 6 Novemeber, 2011 where I'll build some manifests and modules live as a part of hackfest event.
http://blog.adityapatawari.com/2011/11/how-to-install-and-configure-puppet.html

https://blogs.oracle.com/observatory/entry/puppet_configuration_in_solaris

http://docs.oracle.com/cd/E23824_01/html/E21803/copyrepo1.html#scrolltoc

No comments:

Post a Comment