aboutsummaryrefslogtreecommitdiffstats
path: root/modules/puppet/manifests/client.pp
blob: 6d920a7492790e8106147b1c8c09b2eaa881814b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class puppet::client inherits puppet {
    include puppet::stored_config

    package { 'puppet': }

    File['/etc/puppet/puppet.conf'] {
        content => template('puppet/puppet.conf','puppet/puppet.agent.conf'),
    }

    cron { 'puppet':
        ensure  => present,
        command => '/usr/sbin/puppetd -o --no-daemonize -l syslog >/dev/null 2>&1',
        user    => 'root',
        minute  => fqdn_rand( 60 ),
    }

    # we are using cron, so no need for the service
    service { 'puppet':
        enable    => false,
        hasstatus => true,
    }
}