summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-03 20:41:02 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-03 20:41:02 -0200
commit2b26da1218014f87d0c7acddf0b9e0105e8121df (patch)
tree74df463e47af8ec9822a7d7da75f87fc2e355763
parentceebf597eff4a6015ee5b911f4e8e8b712966eb6 (diff)
downloadpuppet-puppet-2b26da1218014f87d0c7acddf0b9e0105e8121df.tar.gz
puppet-puppet-2b26da1218014f87d0c7acddf0b9e0105e8121df.tar.bz2
Fixing variable scope issue
-rw-r--r--manifests/puppetmasterd.pp9
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index bdda61c..411f908 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -1,9 +1,10 @@
# handles puppetmasterd service
+class puppetmasterd {
+ # warns that this node has a puppetmaster
+ $puppetmasterd_present = true
-# warns that this node has a puppetmaster
-$puppetmasterd_present = true
-
-class puppetmasterd inherits puppet {
+ # then include puppet class
+ include puppet
# needed packages
package {