summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/sysconfig/puppet12
-rw-r--r--manifests/init.pp10
2 files changed, 22 insertions, 0 deletions
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,