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 --- files/sysconfig/puppet | 12 ++++++++++++ manifests/init.pp | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 files/sysconfig/puppet diff --git a/files/sysconfig/puppet b/files/sysconfig/puppet new file mode 100644 index 0000000..24ca1c5 --- /dev/null +++ b/files/sysconfig/puppet @@ -0,0 +1,12 @@ +# The puppetmaster server +#PUPPET_SERVER=puppet + +# If you wish to specify the port to connect to do so here +#PUPPET_PORT=8140 + +# Where to log to. Specify syslog to send log messages to the system log. +PUPPET_LOG=/var/log/puppet/puppet.log + +# You may specify other parameters to the puppet client here +#PUPPET_EXTRA_OPTS=--waitforcert=500 +PUPPET_EXTRA_OPTS=--report 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