summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/client/debian/puppet7
-rw-r--r--manifests/init.pp9
2 files changed, 15 insertions, 1 deletions
diff --git a/files/client/debian/puppet b/files/client/debian/puppet
new file mode 100644
index 0000000..3e0ee04
--- /dev/null
+++ b/files/client/debian/puppet
@@ -0,0 +1,7 @@
+# Defaults for puppet - sourced by /etc/init.d/puppet
+
+# Start puppet on boot?
+START=yes
+
+# Startup options
+DAEMON_OPTS="-w 0"
diff --git a/manifests/init.pp b/manifests/init.pp
index ebcd234..48a7992 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -85,7 +85,14 @@ class puppet::gentoo inherits puppet::linux {
}
}
class puppet::debian inherits puppet::linux {
- # there is really no status cmd for it
+ file{'/etc/default/puppet':
+ source => [ "puppet://$server/files/puppet/client/debian/${fqdn}/puppet",
+ "puppet://$server/files/puppet/client/debian/${domain}/puppet",
+ "puppet://$server/files/puppet/client/debian/puppet",
+ "puppet://$server/puppet/client/debian/puppet" ],
+ notify => Service[puppet],
+ owner => root, group => 0, mode => 0644;
+ } # there is really no status cmd for it
Service[puppet]{
hasstatus => false,
}