Hi,
I'm trying to do something with Hiera, whereby the 'default' configuration for a class is within it's role/profile manifest, which can then be overridden on a node specific basis by hiera.
As an example;
class profile::base {
class { '::ntp':
servers => ['a', 'b', 'c', 'd']
}
}
include profile::base
}
hieradata/nodes/blah.com.yaml:
---
ntp::servers:
However, I've noticed that hiera's behaviour seems to be that if a parameter is set like I do for the ntp::server param in the ntp class, it's not looked up (all the other NTP params are looked up in hiera, except for servers). Whereas if I just do:
class profile::base {
class { '::ntp': }
}
The server parameter is now looked up from hiera.
Is this intended behaviour?
Thanks,
Rob