/[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 154 - (show annotations) (download)
Fri Nov 5 18:20:22 2010 UTC (13 years, 5 months ago) by misc
File size: 844 byte(s)
- add puppet module, based on my own setup
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 }

  ViewVC Help
Powered by ViewVC 1.1.30