summaryrefslogtreecommitdiff
path: root/manifests/puppetd.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 19:57:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 19:57:57 -0200
commite53682c533248f365c8258dfb024d97156018c44 (patch)
treed34278cace3f77bda0d2de59ea9634ac7d5495fc /manifests/puppetd.pp
parent55851d5607bfea2cbc79aa2ec269559b2b6ec6fc (diff)
downloadpuppet-puppet-e53682c533248f365c8258dfb024d97156018c44.tar.gz
puppet-puppet-e53682c533248f365c8258dfb024d97156018c44.tar.bz2
Refactoring present/absent scheme
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,