claranet / puppet-consul_template

A Puppet module to manage the config and jobs of Consul Template from Hashicorp
Apache License 2.0
30 stars 89 forks source link

Service.pp not actioning hiera values properly #99

Closed atatara closed 6 years ago

atatara commented 7 years ago

While removing consul-service from chkconfig, I noticed that module is not taking proper action according to values set in hiera. This is fixed in the attached file with hiera lookup. screen shot 2017-08-28 at 17 55 56

craigwatson commented 7 years ago

Hi,

Thanks for raising this - your Hiera values should be passed into the main consul_template class, so there should be no need to modify the service.pp file directly.

For example, in Hiera:

consul_template::service_ensure: 'stopped'
consul_template::service_enable: false

Can you also confirm the version of Puppet you are using?

Thanks, Craig

craigwatson commented 6 years ago

@atatara as this issue hasn't seen any activity in a couple of months, I'll close it for now. Please do feel free to re-open if the problem can't be solved using Hiera as I explained above.