Please provide examples how to use the puppet-hiera module for Hiera backend consul.
Below is my implementation:
I am getting syntax errors on the backend_options paths statement. I am not sure if this is the right way to define hash inside puppet.
class hiera_conf {
class { 'hiera':
backends => ['consul'],
hiera_yaml => '/etc/puppetlabs/code/hiera.yaml',
backend_options => {
'consul' => {
'host' => '127.0.0.1',
'port' => '8500',
'paths' => {
'/v1/catalog/service', '/v1/catalog/node',"/v1/kv/application/%{deploy_path}",
},
},
},
hierarchy => [
'secure',
"nodes/%{::hostname}",
'common',
],
eyaml => true,
}
}
↧