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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2395 - (hide annotations) (download)
Fri Feb 10 19:05:33 2012 UTC (12 years, 1 month ago) by misc
File size: 934 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 misc 2368 class puppet::master {
2     include puppet::client
3     include puppet::queue
4    
5     # rails and sqlite3 are used for stored config
6 misc 2395 package { 'puppet-server': }
7 misc 2368
8 misc 2373 service { 'puppetmaster':
9     subscribe => [Package['puppet-server'],
10     File['/etc/puppet/puppet.conf']],
11 misc 2368 }
12    
13     file { '/etc/puppet/extdata':
14 misc 2373 ensure => directory,
15     owner => puppet,
16     group => puppet,
17     mode => '0700',
18 misc 2368 recurse => true,
19     }
20    
21     file { '/etc/puppet/tagmail.conf':
22 misc 2373 content => template('puppet/tagmail.conf'),
23 misc 2368 }
24    
25     tidy { '/var/lib/puppet/reports':
26 misc 2373 age => '4w',
27     matches => '*.yaml',
28 misc 2368 recurse => true,
29 misc 2373 type => 'mtime',
30 misc 2368 }
31    
32     file { '/etc/puppet/autosign.conf':
33 misc 2373 ensure => $::environment ? {
34 misc 2368 'test' => 'present',
35     default => 'absent',
36     },
37     content => '*',
38     }
39     }

  ViewVC Help
Powered by ViewVC 1.1.30