After using hiera for a few months, I started to find a lot of keys with
the same value in my common.yam:
---
provisioning::server: 'same.old.node'
kickstart::server: 'same.old.node'
puppet::server: 'same.old.node'
Contextually they are fine, however it seems a little redundant.
Is there a way I can call provisioning server from my kickstart class
without having to use the hiera lookup function? And is that acceptable
practice?
Doesn't seem like this is possible due to scope.
class kickstart {
$server = $provisioning::server
This doesn't seem to work either:
$server = $provisioning::server
class kickstart {
I know I can use the hiera() function, but checking to see if this is the
only way.
Thanks!
--
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/50946780-d02d-4146-b7ae-1ed6ec31e463%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.