On Wednesday 24 Mar 2010 22:15:27 Michael DeHaan wrote:
> On Wed, Mar 24, 2010 at 5:51 PM, Gustavo Soares 
<gustavosoa...@gmail.com>wrote:
> > Hi, Michael! thanks for your reply!
> >
> > actually it is the opposite.. :) i.e, I want to use the same variable,
> > but in different definitions...
> 
> Ok, sorry for the confusion.
> 
> I would have thought "$common_variables::x" would have worked to reference
> something in a parent, but it does not.
> 
> Perhaps someone else can share a workaround as I'm not too familiar with
> scoping in this case.
> 
> I know you can do variables at top scope or through your external nodes
> classifier, but that is not ideal.
> 
> --Michael
> 

IIRC you also need to 'include' the class within the define, then qualified 
variables (like ${class::variable}) should work.  YMMV, these kinds of things 
have always caused enough issues to drive me crazy, but definitely possible.


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify 
supp...@henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

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

Reply via email to