On Tue, Apr 12, 2011 at 6:39 PM, Ben Hughes <[email protected]> wrote:
> > Sadly, my introspection-fu seems to be lacking and I'm unable to figure > it out. Any help? > > Not easily. The only way I was able to find mention of it at all was > with the horrible voodoo of a template of: > > <%= require 'pp' ; pp @__scope__ %> > > And even then, there's no safe, sane or simple way of getting it out. > > You're best off just having two different templates I'm afraid and less > magic. > > I ended up doing something even uglier (and probably stupider). I created two sub-classes of jumpstart: jumpstart::mirrorroot and jumpstart::zfsroot, and each one just sets a variable ($target) and the uses the template. It's incredibly stupid, but it works. -- 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.
