On Friday, August 10, 2012 3:52:42 PM UTC-5, Douglas wrote:
>
> On Fri, Aug 10, 2012 at 1:42 PM, llowder <[email protected] <javascript:>> 
> wrote: 
> > 
> > 
> > On Friday, August 10, 2012 3:28:33 PM UTC-5, Douglas wrote: 
> >> 
> >> So... 
> >> 
> >> I was just reading the new puppet scoping documentation at 
> >> http://docs.puppetlabs.com/guides/scope_and_puppet.html. 
> >> 
> >> I don't get it. If I have this... 
> >> 
> >> class web_server { 
> >>     include common 
> >>     include webserver 
> >>     $my_role = "web_server" 
> >> } 
> >> 
> >> Can I access the $my_role variable in the webserver class? 
> > 
> > 
> > If you use: $web_server::my_role 
>
> This seems completely screwed to me. What if your in a general class, 
> one not necessarily related to the function of a web server (but still 
> included from a web server), and you need to access the role? 
>
>
Then use the fully qualified variable name as I mentioned in my last post.

 

> Doug. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/WT9kA4LHTvYJ.
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