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

How to use somefile.ctmpl from file on machine, not from erb template? #44

Closed mrh666 closed 8 years ago

mrh666 commented 8 years ago

Hi there,

The default definition in Watch is "template => 'data/common.json.ctmpl.erb'," which is getting the template from manifest. But how can I define to watch template file on the instance?

I have a ctmpl on the instance which is combined from 3 different parts (storm installation) and I already have it on my instances, so I want to watch it by consul-template instead of define it in templates folder. How can I do it? How should I change watch.pp?

mrh666 commented 8 years ago

Fixed by myself, pull-request created