Hi Michael. Can you share the code you tried and the errors you ran into?
On Thu, Aug 9, 2018 at 11:30 AM Michael Watters <[email protected]> wrote:
> Hello,
>
> Is it possible to define metaparameters for a resource in Hiera? For
> example, I have a class that is currently declared within another class as
> follows.
>
> if !defined(Class['autofs']) {
> class { 'autofs':
> require => [
> Class['authconfig'],
> Class['nfs::client'],
> ],
> }
> }
>
> I would like to get rid of this mess and use a standard include statement
> with parameters defined in my common.yaml as follows.
>
> include 'autofs'
>
> ---
> autofs::require:
> - "Class['authconfig']"
> - "Class['nfs::client']"
>
>
> Will this work or do I have to stick with resource-like declarations to
> define dependencies?
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/ea13260d-673f-4322-a787-271c7f4b1259%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/ea13260d-673f-4322-a787-271c7f4b1259%40googlegroups.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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CACkW_L4GrkKS%2BwQtaE4hcAq%3DqjmYtiFVr_mh9Bj22vmENH2brg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.