/[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 951 - (hide annotations) (download)
Wed Feb 2 23:26:53 2011 UTC (10 years, 8 months ago) by misc
File size: 1735 byte(s)
oops, 1m doesn't 1 month, but 1 minutes
1 misc 154
2     class puppet {
3     class client {
4     package { puppet:
5     ensure => installed
6     }
7    
8     service { puppet:
9     ensure => running,
10 misc 595 hasstatus => true,
11     subscribe => [ Package[puppet]]
12 misc 154 }
13    
14 misc 595 exec { "service puppet reload":
15     refreshonly => true,
16     subscribe => [ File["puppet.conf"] ],
17     }
18    
19     file { "puppet.conf":
20     path => "/etc/puppet/puppet.conf",
21 misc 154 ensure => present,
22     owner => root,
23     group => root,
24     mode => 644,
25     content => template("puppet/puppet.conf"),
26     require => Package[puppet]
27     }
28     }
29    
30     class master inherits client {
31     package { puppet-server:
32     ensure => installed
33     }
34 misc 513
35     # for stored config
36 misc 515 package { ["ruby-sqlite3","rails"]:
37 misc 513 ensure => installed
38     }
39    
40 misc 154 service { puppetmaster:
41     ensure => running,
42     path => "/etc/init.d/puppetmaster",
43 misc 595 subscribe => [ Package[puppet-server], File["puppet.conf"]]
44 misc 154 }
45 misc 156
46     file { "extdata":
47     path => "/etc/puppet/extdata",
48     ensure => directory,
49     owner => puppet,
50     group => puppet,
51     mode => 700,
52     recurse => true
53     }
54 misc 202
55     file { '/etc/puppet/tagmail.conf':
56     ensure => present,
57 misc 438 owner => root,
58     group => root,
59     mode => 644,
60 misc 202 content => template("puppet/tagmail.conf"),
61 misc 948 }
62    
63     tidy { "/var/lib/puppet/reports":
64 misc 951 age => "4w",
65 misc 948 matches => "*.yaml",
66     recurse => true,
67     type => "mtime",
68     }
69    
70 misc 154 }
71     }

  ViewVC Help
Powered by ViewVC 1.1.28