diff options
author | mh <mh@immerda.ch> | 2008-07-04 11:45:07 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-07-04 11:45:07 +0000 |
commit | dabaa45040625c9226c1f48e137bc3b07fb682f6 (patch) | |
tree | 0a2e9324dcfda5508c2f38f532f481f56a3ef6ed /manifests | |
parent | 6b8a63226e0dc6aaedc6567b45fd800ad09962b7 (diff) |
added centos sysconfig to be manged
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 263d5b0..9f9e7a2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -24,6 +24,7 @@ class puppet { case $kernel { linux: { case $operatingsystem { gentoo: { include puppet::gentoo } + centos: { include puppet::centos } default: { include puppet::linux} } } @@ -82,6 +83,15 @@ class puppet::gentoo inherits puppet::linux { hasstatus => false, } } +class puppet::centos inherits puppet::linux { + file{'/etc/sysconfig/puppet': + source => [ "puppet://$server/files/puppet/sysconfig/${fqdn}/puppet", + "puppet://$server/files/puppet/sysconfig/puppet", + "puppet://$server/puppet/sysconfig/puppet" ], + notify => Service[puppet], + user => root, group => 0, mode => 0644; + } +} class puppet::openbsd { service{'puppet': provider => base, |