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!