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 <jonathan.gaze...@bristol.ac.uk <mailto:jonathan.gaze...@bristol.ac.uk>> wrote:

    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 defined type. So how do I access site variables in
    my defined types? I tried using 'include mymodule::params' but
    this didn't provide the variables either.

    Thanks,
    Jonathan

-- You received this message because you are subscribed to the Google
    Groups "Puppet Users" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to puppet-users+unsubscr...@googlegroups.com
    <mailto:puppet-users%2bunsubscr...@googlegroups.com>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/puppet-users/54071074.9010504%40bristol.ac.uk.
    For more options, visit https://groups.google.com/d/optout.




--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com <mailto:puppet-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF-H%3DO%3DBaKsd1AWmTFmahUSa473fj5N1rgtfO6MFrY%2Bjs7vGcQ%40mail.gmail.com <https://groups.google.com/d/msgid/puppet-users/CAF-H%3DO%3DBaKsd1AWmTFmahUSa473fj5N1rgtfO6MFrY%2Bjs7vGcQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54073250.2030606%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to