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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 156 - (show annotations) (download)
Fri Nov 5 18:20:57 2010 UTC (13 years, 11 months ago) by misc
File size: 1068 byte(s)
move extdata to the module
1
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
28 service { puppetmaster:
29 ensure => running,
30 path => "/etc/init.d/puppetmaster",
31 subscribe => [ Package[puppet-server], File["/etc/puppet/puppet.conf"]]
32 }
33
34 file { "extdata":
35 path => "/etc/puppet/extdata",
36 ensure => directory,
37 owner => puppet,
38 group => puppet,
39 mode => 700,
40 recurse => true
41 }
42 }
43 }

  ViewVC Help
Powered by ViewVC 1.1.30