diff options
Diffstat (limited to 'manifests/init.pp')
-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, |