diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 19:57:57 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 19:57:57 -0200 |
commit | e53682c533248f365c8258dfb024d97156018c44 (patch) | |
tree | d34278cace3f77bda0d2de59ea9634ac7d5495fc /manifests/puppetd.pp | |
parent | 55851d5607bfea2cbc79aa2ec269559b2b6ec6fc (diff) | |
download | puppet-puppet-e53682c533248f365c8258dfb024d97156018c44.tar.gz puppet-puppet-e53682c533248f365c8258dfb024d97156018c44.tar.bz2 |
Refactoring present/absent scheme
Diffstat (limited to 'manifests/puppetd.pp')
-rw-r--r-- | manifests/puppetd.pp | 8 |
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, |