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

Make Service['consul-template'] Refresh on ctmpl template change #26

Closed nhandler closed 9 years ago

nhandler commented 9 years ago

manifests/watch.pp is set to notify the Service['consul-template'] when consul-template/config.json changes. However, this file will only change when a ctmpl file is added, removed, or the destination/command is changed. The config.json file does not change if the erb template for the ctmpl file is modified.

Note: I have not tested this change yet, but I believe it should work. I will test it within the next day and comment with my results.

gdhbashton commented 9 years ago

Hi - how did your testing go?

kcormier commented 9 years ago

I tested this in my environment and it worked perfectly. Is there anything I can do to help push this forward?

Env tested: redhat 7 puppet 3.8.1

gdhbashton commented 9 years ago

Thank you :)