/[adm]/puppet/modules/puppet/manifests/client.pp
ViewVC logotype

Contents of /puppet/modules/puppet/manifests/client.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2395 - (show annotations) (download)
Fri Feb 10 19:05:33 2012 UTC (9 years, 7 months ago) by misc
File size: 558 byte(s)
split stored_config in a separate class, and refactor the configuration.
This will ease a switch to postgresql once I found how to solve the
issues of bootstrapping it ( for automated reinstallation )
1 class puppet::client {
2 include puppet::stored_config
3 package { 'puppet': }
4
5 file { '/etc/puppet/puppet.conf':
6 content => template('puppet/puppet.conf'),
7 require => Package[puppet],
8 }
9
10 cron { 'puppet':
11 ensure => present,
12 command => '/usr/sbin/puppetd -o --no-daemonize -l syslog >/dev/null 2>&1',
13 user => 'root',
14 minute => fqdn_rand( 60 ),
15 }
16
17 # we are using cron, so no need for the service
18 service { 'puppet':
19 enable => false,
20 hasstatus => true,
21 }
22 }

  ViewVC Help
Powered by ViewVC 1.1.28