Hi!
Couldn't find the answer in the documentation.
Is it possible to source data from Hiera directly into parametrised classes?
To explain:
I have class mcollective(type,middleware_hosts,securityprovider ....)
Can I define all arguments for this class in Hiera and fetch them all in
one Hiera call and then use to declare the class?
Similar what is done with create_resources for defined type but for Class?
Just seems waste to me doing individually:
$type = hiera('mcollective::type')
$middleware_hosts = hiera('mcollective::middleware_hosts')
and then in the class declaration:
class { '::mcollective':
type => $type
middleware_hosts => $middleware_hosts
Andrey
--
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/CACzr%3DFf9kEP7nzX8D72Kw2Uj_J%3DTgyMO5jkckuYz60qDJE%2BB2A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.