On Wed, May 4, 2011 at 8:01 AM, Felix Frank <[email protected] > wrote:
> > Can I somehow pass variables or other tokens around the catalogue and > > make conditional decisions in other modules based on them? > > Excellent question. > > You more or less can, but you shouldn't. Scoping issues will bite you > sooner or later. > Not if you either set the variables at top scope or always use fully qualified variables in a class that includes all your other classes. Another method to avoid scoping is to set these as node parameters in your node classifier. For your use case, you should take a hard look at Custom Facts. This will avoid any potential scoping issues but does add the overhead of writing the facts. -- 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.
