diff options
author | mh <mh@immerda.ch> | 2008-03-30 15:58:17 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-03-30 15:58:17 +0000 |
commit | b99163d6427efa517eb310f388f00051791cb8f2 (patch) | |
tree | 6a59be0b6f9770a9bf57fe87defca9f083b58440 /manifests | |
parent | 4dff57c0337ffbe0b93649998f452a73b36eb480 (diff) |
firts try to migrate puppet to cluster version
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index a5f80c3..d23d9c8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -102,3 +102,22 @@ class puppetmaster inherits puppet { notify => [Service[puppet],Service[puppetmaster] ], } } + +class puppetmaster::cluster inherits puppetmaster { + include mongrel, nginx + + File[puppet_config] { + require => [ Package[mongrel], Package[nginx], File[nginx_config] ], + } + + file{"/etc/init.d/puppetmaster": + source => [ "puppet://$server/dist/puppet/cluster/init.d/puppetmaster-${fqdn}", + "puppet://$server/puppet/cluster/init.d/puppetmaster.${operatingsystem}", + "puppet://$server/puppet/cluster/init.d/puppetmaster" ], + owner => root, + group => 0, + mode => 0755, + require => [ Package[puppet], Package[mongrel], Package[nginx], File[nginx_config] ], + notify => Service[puppetmaster], + } +} |