Closed JayH5 closed 8 years ago
Puppet never ceases to amaze me. Is it any wonder the cool kids rush to Ansible and Salt? A PR would be very kind. Reading through init.pp
I expected that this would already be enough:
https://github.com/gdhbashton/puppet-consul_template/blob/master/manifests/init.pp#L127-L136
Oh hang on - look at that ~>
on line 134 - can you tell me if you get better behaviour if that's a forceful ->
ordering rather than a ~>
subscription?
I don't think ->
vs ~>
will make much of a difference. From the docs: "~> (notification arrow) Causes the resource on the left to be applied first..."
I also haven't seen this in a Puppet module before. I'm not sure if you were aiming to do what I'm saying here with that?
Anyway... let me try draw up a PR.
Let me know if that causes any grief - I'm hoping to push a new version to the Forge in the next day or two.
Because the main class doesn't contain or anchor the classes it includes, we can't set dependencies on it. i.e. doing something like:
...doesn't actually require that the unzip package is installed before Consul Template.
I can work on a PR for this, but for now I'm having to add
Package['unzip'] -> Class['consul_template::install']
in my manifests as a workaround.