summaryrefslogtreecommitdiff
path: root/manifests/puppetd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetd.pp')
-rw-r--r--manifests/puppetd.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp
index 0d5a8bb..62aad13 100644
--- a/manifests/puppetd.pp
+++ b/manifests/puppetd.pp
@@ -1,5 +1,9 @@
# handles puppetd service
-class puppetd inherits puppet {
+class puppetd(
+ $master = false,
+ $main_master = false,
+) {
+ include puppet
case $puppetmaster_port {
'': { $puppetmaster_port = "8140" }
@@ -59,7 +63,7 @@ class puppetd inherits puppet {
}
# default config file for puppet nodes
- if ($puppetmasterd_present != true) or ($main_master != true) {
+ if ($master != true) or ($main_master != true) {
file { "/etc/puppet/puppet.conf":
ensure => file,
owner => puppet,