[Puppet Users] Re: local vs global variables

2012-04-03 Thread jcbollinger
On Apr 3, 3:17 am, Pablo Fernandez wrote: > class data::group_wn { >      # This is needed to connect freely from/to the CE >      $sshd_HostbasedAuthentication = 'yes' >      $sshd_IgnoreUserKnownHosts = 'yes' > > } > > class data::group_ppwn inherits data::group_wn { >      # We can override a

[Puppet Users] Re: local vs global variables

2012-04-02 Thread jcbollinger
On Mar 30, 9:02 am, Pablo Fernandez wrote: > I have trying to dig more into this, and I found out the problem is not > the scope of the variable, but hiera! > > So, it seems like hiera('netmask') is actually looking into the node's > facts! Is this the expected behavior? > > This is my hiera.yam

[Puppet Users] Re: local vs global variables

2012-04-02 Thread jcbollinger
On Mar 30, 9:23 am, Pablo Fernandez wrote: > Well... that's why you have scopes, right? So that you don't need to > know all variables in your tree, just the local ($var) and globals > ($::var). At least it's how I understood it. You understand it the same way I do. Besides, Puppet will norma