Closed codesplicer closed 9 years ago
Cool - can you provide an example of the incorrect JSON to help any future searches?
Well it doesn't even render the JSON file, the puppet run fails with:
==> default: Warning: Scope(Concat::Fragment[header]): Could not look up qualified variable 'concat::setup::root_group'; class concat::setup has not been evaluated
==> default: Warning: Scope(Concat::Fragment[header]): Could not look up qualified variable 'concat::setup::concatdir'; class concat::setup has not been evaluated
==> default: Warning: Scope(Concat[consul-template/config.json]): Could not look up qualified variable 'concat::setup::root_group'; class concat::setup has not been evaluated
and
==> default: Error: Could not set 'present' on ensure: No such file or directory - /consul-template_config.json/fragments/00_header20150224-8401-1azrlg0.lock at 66:/tmp/vagrant-puppet/modules-2a0d2038743e6c4355f99d1ad4e81937/concat/manifests/fragment.pp
==> default: Error: Could not set 'present' on ensure: No such file or directory - /consul-template_config.json/fragments/00_header20150224-8401-1azrlg0.lock at 66:/tmp/vagrant-puppet/modules-2a0d2038743e6c4355f99d1ad4e81937/concat/manifests/fragment.pp
==> default: Wrapped exception:
==> default: No such file or directory - /consul-template_config.json/fragments/00_header20150224-8401-1azrlg0.lock
==> default: Error: /Stage[main]/Consul_template::Config/Concat::Fragment[header]/File[/consul-template_config.json/fragments/00_header]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /consul-template_config.json/fragments/00_header20150224-8401-1azrlg0.lock at 66:/tmp/vagrant-puppet/modules-2a0d2038743e6c4355f99d1ad4e81937/concat/manifests/fragment.pp
Seems the newer concat module fixes a bug.
Ah perfect - that's the stuff Google loves :) Thank you for the contribution!
Tested with concat v1.0.0 and the module failed to render config.json correctly. Newer version of concat works fine.