Re: [Puppet Users] 'inherits' in a defined type

2014-09-15 Thread Felix Frank
On 09/04/2014 06:10 PM, jcbollinger wrote: > You may need to define local versions of them that equal the param > or default to the param. > > $var = $::class::params::var > > > > Note that the point of the pattern of inheriting params classes is only > to ensure that the inherited

Re: [Puppet Users] 'inherits' in a defined type

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 9:05:20 AM UTC-5, Atom Powers wrote: > > You may need to define local versions of them that equal the param or > default to the param. > > $var = $::class::params::var > > Note that the point of the pattern of inheriting params classes is only to ensure that the

Re: [Puppet Users] 'inherits' in a defined type

2014-09-03 Thread Jonathan Gazeley
Thanks - this works. Seems a bit inelegant, but it'll have to do. Cheers, Jonathan On 03/09/14 15:05, Atom Powers wrote: You may need to define local versions of them that equal the param or default to the param. $var = $::class::params::var On Wed, Sep 3, 2014 at 5:58 AM, Jonathan Gazeley

Re: [Puppet Users] 'inherits' in a defined type

2014-09-03 Thread Atom Powers
You may need to define local versions of them that equal the param or default to the param. $var = $::class::params::var On Wed, Sep 3, 2014 at 5:58 AM, Jonathan Gazeley < jonathan.gaze...@bristol.ac.uk> wrote: > Hopefully this is just me having a bad day, but I'm having trouble writing > a new

[Puppet Users] 'inherits' in a defined type

2014-09-03 Thread Jonathan Gazeley
Hopefully this is just me having a bad day, but I'm having trouble writing a new module. I have a mymodule::params class with some sensible site defaults in it, and the other classes "inherit mymodule::params". I also have some defined types, and of course you can't use 'inherits' in a defin