How do you typically organize your data lookups when you want to use the same
hiera data across multiple profiles, themselves possibly used across multiple
roles?
A cut down example with fake names:
class role::mailserver {
include ::profile::http
include ::profile::smtp
}
class role::webserver {
include ::profile::http
}
class profile::http ($ssldata) {
class { 'apache':
ssldata => $ssldata,
}
}
class profile::smtp ($ssldata) {
class { 'postfix':
ssldata => $ssldata,
}
}
In this example $ssldata would be a hash of loopback+cert+key+chain sets.
It seems like this is the exact case for the lookup() function but perhaps one
of you had a better idea.
(Humorously, I am also taking naming suggestions for the set of cross-profile
hiera keys, however risky that is on a puppet-related list.)
--
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/20170612165744.GA13854%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.