Ask Your Question
0

puppet agent is not performing according to puppet master

asked 2015-12-22 06:19:47 -0600

Arzyfex gravatar image

updated 2016-06-02 01:32:39 -0600

Hi, I'm trying to configure puppet server and client.

My server's puppet.conf looks like

[main]
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
    dns_alt_names = puppet,rahul.example.com
[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig

My Client's puppet.conf looks like, 

[main]
    server = rahul.example.com
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl

[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    runinterval = 0

My manifest looks like, site.pp

node 'client.example.com' {

        file { '/etc/motd':
                content => "This is configured via Puppet Server\n",
        }

        package { 'vsftpd':
                ensure => present,
        }

        user { 'ironman':
                ensure => present,
                comment => 'Iron Man',
                home => '/home/ironman',
                managehome => true,
                password => $6$poTX4MwAOs0sA3YN$CkTVJZGoiaybS9EAe1VotzJ5NC/x1mU32YHu.H9Gn77z9LxrLnybREeIMo5vKdN2KPWm/jNXEGxNudgthzAQs.
}

after that I restarted puppetmaster service at server, and puppet at client

still there is no such user created, no vsftpd installed, nothing written to /etc/motd file. Please help me out, I'm new to Puppet.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-12-26 14:05:15 -0600

c4f4t0r gravatar image

you need to change "runinterval" to no zero argument in your client side, for example:

[agent] 
   classfile = $vardir/classes.txt
   localconfig = $vardir/localconfig 
   runinterval = 5m
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-12-22 06:19:47 -0600

Seen: 88 times

Last updated: Jun 02 '16