]> gitweb.fluxo.info Git - puppet-puppet.git/commitdiff
Fixing variable scope issue
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 3 Jan 2010 22:41:02 +0000 (20:41 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 3 Jan 2010 22:41:02 +0000 (20:41 -0200)
manifests/puppetmasterd.pp

index bdda61c69c2b802f42793e3225005249b242b1bd..411f9089adc799103f0ff6f5cebcac30d5981ccf 100644 (file)
@@ -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 {