From dabaa45040625c9226c1f48e137bc3b07fb682f6 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 4 Jul 2008 11:45:07 +0000 Subject: added centos sysconfig to be manged --- manifests/init.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'manifests') 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, -- cgit v1.2.3