/[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 515 - (hide annotations) (download)
Mon Dec 6 17:25:58 2010 UTC (13 years, 4 months ago) by misc
File size: 1412 byte(s)
stored config option requires rails ( maybe a wrong requires on ruby-activerecord )

1 misc 154
2     class puppet {
3     class client {
4     package { puppet:
5     ensure => installed
6     }
7    
8     service { puppet:
9     ensure => running,
10     subscribe => [ Package[puppet], File["/etc/puppet/puppet.conf"]]
11     }
12    
13     file { "/etc/puppet/puppet.conf":
14     ensure => present,
15     owner => root,
16     group => root,
17     mode => 644,
18     content => template("puppet/puppet.conf"),
19     require => Package[puppet]
20     }
21     }
22    
23     class master inherits client {
24     package { puppet-server:
25     ensure => installed
26     }
27 misc 513
28     # for stored config
29 misc 515 package { ["ruby-sqlite3","rails"]:
30 misc 513 ensure => installed
31     }
32    
33 misc 154 service { puppetmaster:
34     ensure => running,
35     path => "/etc/init.d/puppetmaster",
36     subscribe => [ Package[puppet-server], File["/etc/puppet/puppet.conf"]]
37     }
38 misc 156
39     file { "extdata":
40     path => "/etc/puppet/extdata",
41     ensure => directory,
42     owner => puppet,
43     group => puppet,
44     mode => 700,
45     recurse => true
46     }
47 misc 202
48     file { '/etc/puppet/tagmail.conf':
49     ensure => present,
50 misc 438 owner => root,
51     group => root,
52     mode => 644,
53 misc 202 content => template("puppet/tagmail.conf"),
54     }
55    
56 misc 154 }
57     }

  ViewVC Help
Powered by ViewVC 1.1.30