summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-06-03 14:34:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-06-03 14:34:14 -0300
commit87f3c8f5ceb42aef1f589639fc4d15ad675136b9 (patch)
treeedb509f574f792d811896b21099e60982d92d968
parent263c720bbc1d08638e3c78806e44f7adf7978e14 (diff)
downloadpuppet-puppet-87f3c8f5ceb42aef1f589639fc4d15ad675136b9.tar.gz
puppet-puppet-87f3c8f5ceb42aef1f589639fc4d15ad675136b9.tar.bz2
Introducing $puppetd_runinterval and $puppetmaster_port
-rw-r--r--manifests/puppetd.pp8
-rw-r--r--templates/puppet-node.conf.erb3
2 files changed, 10 insertions, 1 deletions
diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp
index c35410a..5950433 100644
--- a/manifests/puppetd.pp
+++ b/manifests/puppetd.pp
@@ -1,6 +1,14 @@
# handles puppetd service
class puppetd inherits puppet {
+ case $puppetmaster_port {
+ '': { $puppetmaster_port = "8140" }
+ }
+
+ case $puppetd_runinterval {
+ '': { $puppetd_runinterval = "1800" }
+ }
+
package { "puppet":
ensure => installed,
require => Package["cron"],
diff --git a/templates/puppet-node.conf.erb b/templates/puppet-node.conf.erb
index bddda72..96890c4 100644
--- a/templates/puppet-node.conf.erb
+++ b/templates/puppet-node.conf.erb
@@ -8,5 +8,6 @@ pluginsync=true
[puppetd]
server = puppet.<%= domain %>
-runinterval = 1800
+runinterval = <%= puppetd_runinterval %>
puppetport = 8139
+masterport = <%= puppetmaster_port %>