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

Cannot set ownership on config directory if manage_user => false (the default) #70

Closed madAndroid closed 8 years ago

madAndroid commented 8 years ago

If we instantiate the module with defaults, puppet attempts to manage the ownership of the config directory, but doesn't create the user; the run then fails with:

Error: Could not find user consul-template
Error: /Stage[main]/Consul_template::Config/File[/etc/consul-template]/owner: change from root to consul-template failed: Could not find user consul-template
Error: Could not find group consul-template
Error: /Stage[main]/Consul_template::Config/File[/etc/consul-template]/group: change from root to consul-template failed: Could not find group consul-template
Notice: /Stage[main]/Consul_template::Config/File[/etc/consul-template/config]: Dependency File[/etc/consul-template] has failures: true

Perhaps the default should be changed to true?

madAndroid commented 8 years ago

Thanks! :)