-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/6/12 10:56 AM, Duncan Hutty wrote: > > I'm not sure, but I think I've come across a bug in the > puppetlabs-nginx module. > > Changing the manifest does not always change the resulting nginx > config. Here's a fairly minimal example, if I have: > > node foo { nginx::resource::vhost { 'foo.example.com': ensure => > present, www_root => '/opt/foogeneral/share/html', } }
Responding to myself for posterity and to nudge puppetlabs devs. In manifests/service.pp, we see: exec { 'rebuild-nginx-vhosts': command => "/bin/cat ${nginx::params::nx_temp_dir}/nginx.d/* > ${nginx::params::nx_conf_dir}/conf.d/vhost_autogen.conf", refreshonly => true, subscribe => File["${nginx::params::nx_temp_dir}/nginx.d"], } I think that the subscribe is going to only cause the exec to be refreshed if the directory is changed, not if any of the *files* in the directory are changed. Can anyone confirm or deny my understanding of subscribe for a directory? - -- Duncan Hutty http://www.allgoodbits.org -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBPpHcACgkQCFuTFybf1wr+CQCfXnURoVvovXKqyiqFjcwMA8Y4 dyMAn2qEGOm+OEYIzs4wKP+mJkrHeZ+h =xAjU -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.