diff options
author | mh <mh@immerda.ch> | 2008-07-02 20:26:02 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-07-02 20:26:02 +0000 |
commit | 4dab9b286ae65cbd679afe9ca4e765001962eb07 (patch) | |
tree | 3b1d5876c78d294d1ca8d783c81835472a06ce05 /manifests/puppetmaster | |
parent | fee703dd27c77fa805207f2f21032859a294eb22 (diff) |
moved cluster class due to namespace
Diffstat (limited to 'manifests/puppetmaster')
-rw-r--r-- | manifests/puppetmaster/cluster.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/puppetmaster/cluster.pp b/manifests/puppetmaster/cluster.pp new file mode 100644 index 0000000..915c8a4 --- /dev/null +++ b/manifests/puppetmaster/cluster.pp @@ -0,0 +1,23 @@ +# manifests/puppetmaster/cluster.pp + +class puppet::puppetmaster::cluster inherits puppet::puppetmaster { + include mongrel, nginx + + Service[puppetmaster]{ + require +> Service[ngnix], + } + + File[puppet_config] { + require => [ Package[mongrel], Package[nginx], File[nginx_config] ], + } + + case $operatingsystem { + gentoo, centos: { + file{"/etc/init.d/puppetmaster": + source => "puppet://$server/puppet/init.d/puppetmaster.${operatingsystem}", + owner => root, group => 0, mode => 0755; + } + } + } +} + |