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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ea13260d-673f-4322-a787-271c7f4b1259%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.