Last Comment

Jon, Just run 'sudo ldconfig' ...

2012-11-27 @ 05:12:47 pm
by Admin

I get this after compileing trying ...

2012-11-27 @ 03:54:49 pm
by Jon

Nice article. That worked for me.

2012-11-27 @ 01:50:19 pm
by Arunroy


September 2017
 << < > >>

Who's Online?

Member: 0
Visitor: 1



No tags in this Blog

rss Syndication





    07:53:05 am

    Puppet Client-Server installation on Ubuntu

    Puppet is an opensource configuration management tool. It is written in Ruby & released under GPL until version 2.7.0 then Apache 2.0 license after that. Puppet is supported by various Linux flavors, unix like os &  windows. Puppet operates in a client-server fashion. In puppet, everything, which puppet can handle will be mentioned in language understandable by puppet. This declarative language is called Domain Specific Language(DSL) or Ruby DSL.

    is a good companion for the system administrators (Sys Admins). Puppet will be pretty handy while configuring many systems/desktops/servers. Suppose we need to have some 100 machines configured with LAMP(Linux-Apache-MySQL-PHP). Here, installing everything manually might kill the time/day/mood of a system administrator. In this situatiion puppet can be a saviour for the Sys Admins. By configuring a single server as Puppet server & adding all other PC's (whatever they are) as puppet clients the above mentioned (LAMP) thing can be easily achieved.

    Here, in this article i will be covering a basic idea about the puppet Master-Client configuraion. Actually, explaining all/every/half the aspects of puppet is a very very difficult task. So, we will have a brief introduction only.Also, i will be covering the installation/configuration on Ubuntu PC's only. It will be slightly different on other flavours of linux, eventhough the basic idea is the same.

    Installing Puppet on Ubuntu

    sudo apt-get update

    sudo apt-get install puppetmaster (This will install puppetmaster on machine A)

    sudo apt-get install puppet (This will install puppetclient on machine B)

    Once this done, we need to install connectivity between the two PC's A & B (puppetmaster & puppet client).

    Prior to that, we have to make sure that both puppetmaster & client can resolve each other's name. For that we have to add the corresponding entries in the file /etc/hosts.

    On puppetmaster

    sudo vim /etc/hosts

    Now append the following entries, (edit it accordingly)

    On puppetclient

    sudo vim /etc/hosts

    Now append the following entries, (edit it accordingly)

    Now, issue the following command from puppet client ( machine B)

    puppetd --server --waitforcert 60 --test

    You will see some information appearing on the screen. It will be like,

    info: Creating a new certificate request for
    warning: peer certificate won't be verified in this SSL session
    notice: Did not receive certificate

    At the moment, you can ignore this one.

    On machine A, as root user, type the following command

    puppetca --list

    If the connectivity is established properly, you can see the certificate request from puppetclient. Now, we need to sign the certficate from puppetclient to implement the proper connectivity.

    for this, from puppetmaster, run the following command,

    puppetca --sign

    Now, the client-server realtion is established in a secure/proper manner.

    If you want to start puppet client on system boot itself, do the following,

    vim /etc/default/puppet

    START=yes   (By default it will be 'NO')

    In my next blog, i will explain how puppet is used for configuration management.

    Admin · 634 views · 0 comments
    Categories: Cat, Tech

    Permanent link to full entry


    No Comment for this post yet...

    Leave a comment

    New feedback status: Awaiting moderation

    Your URL will be displayed.

    Please enter the code written in the picture.

    Comment text

       (Set cookies for name, e-mail and url)