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

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

  ViewVC Help
Powered by ViewVC 1.1.28