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

Annotation of /puppet/modules/puppet/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1796 - (hide annotations) (download)
Sun Jul 3 22:32:06 2011 UTC (12 years, 9 months ago) by misc
File size: 1836 byte(s)
use a cron based system rather than the daemon, as said on the ml
1 misc 154
2     class puppet {
3     class client {
4     package { puppet:
5     ensure => installed
6     }
7    
8     service { puppet:
9 misc 1796 enable => false,
10 misc 595 hasstatus => true,
11     subscribe => [ Package[puppet]]
12 misc 154 }
13    
14 misc 595 file { "puppet.conf":
15     path => "/etc/puppet/puppet.conf",
16 misc 154 ensure => present,
17     owner => root,
18     group => root,
19     mode => 644,
20     content => template("puppet/puppet.conf"),
21     require => Package[puppet]
22     }
23 misc 1796
24     cron { "puppet":
25     command => "/usr/sbin/puppetd --onetime --no-daemonize --logdest syslog > /dev/null 2>&1",
26     user => "root",
27     minute => fqdn_rand( 60 ),
28     ensure => present,
29     }
30 misc 154 }
31    
32     class master inherits client {
33     package { puppet-server:
34     ensure => installed
35     }
36 misc 513
37     # for stored config
38 misc 515 package { ["ruby-sqlite3","rails"]:
39 misc 513 ensure => installed
40     }
41    
42 misc 154 service { puppetmaster:
43     ensure => running,
44     path => "/etc/init.d/puppetmaster",
45 misc 595 subscribe => [ Package[puppet-server], File["puppet.conf"]]
46 misc 154 }
47 misc 156
48     file { "extdata":
49     path => "/etc/puppet/extdata",
50     ensure => directory,
51     owner => puppet,
52     group => puppet,
53     mode => 700,
54     recurse => true
55     }
56 misc 202
57     file { '/etc/puppet/tagmail.conf':
58     ensure => present,
59 misc 438 owner => root,
60     group => root,
61     mode => 644,
62 misc 202 content => template("puppet/tagmail.conf"),
63 misc 948 }
64    
65     tidy { "/var/lib/puppet/reports":
66 misc 951 age => "4w",
67 misc 948 matches => "*.yaml",
68     recurse => true,
69     type => "mtime",
70     }
71    
72 misc 154 }
73     }

  ViewVC Help
Powered by ViewVC 1.1.30