On Tue, Sep 27, 2011 at 15:20, Dan Bode <[email protected]> wrote:
> I can think of something really hacky that I don't recommend for production,
> it could be ok for debugging purposes.

Yeah, this is *totally* not a sane thing to do.  Really not sane.
Find a better way to solve your problem.

That said, you can also use defined types recursively in Puppet:

define foo() {
  if ($name == 0) {
    notice("done")
  }
  else
  {
    notice("bar is $name")
    $bar = $name - 1
    foo { $bar: }
  }
}

foo { "4": }

Daniel
-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to