Re: [Puppet Users] Variables and autoloading

2012-10-23 Thread Fabrice Bacchella
> On Mon, Oct 22, 2012 at 12:37 PM, jcbollinger > wrote: > $param1 = 'default1', > $param2 = 'default2' ) { > # declarations > } > > I recommend some variation on > > class mymodule::foo { > $param1 = hiera('foo::param1', 'default1') > $param2 = hiera('foo::param2', 'default2') > #

[Puppet Users] Variables and autoloading

2012-10-15 Thread Simon Marechal
It seems to me that a few puppet modules do access variables from non-included classes (for example https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/config.pp look at how stuff is pulled out of mysql::params). I do not understand how this is supposed to work. What happens i