summaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base.pp')
-rw-r--r--manifests/base.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
new file mode 100644
index 0000000..7e65408
--- /dev/null
+++ b/manifests/base.pp
@@ -0,0 +1,23 @@
+class puppet::base {
+ case $puppet_config {
+ '': { $puppet_config = '/etc/puppet/puppet.conf' }
+ }
+
+ file { 'puppet_config':
+ path => "$puppet_config",
+ source => [ "puppet://$server/files/puppet/client/${fqdn}/puppet.conf",
+ "puppet://$server/files/puppet/client/puppet.conf.$operatingsystem",
+ "puppet://$server/files/puppet/client/puppet.conf",
+ "puppet://$server/puppet/client/puppet.conf.$operatingsystem",
+ "puppet://$server/puppet/client/puppet.conf" ],
+ notify => Service[puppet],
+ owner => root, group => 0, mode => 600;
+ }
+ service{'puppet':
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ pattern => puppetd,
+ }
+}