I have inherited some puppet configurations; there is an exec resource that looks like this: exec { "force-reload-httpd": command => "/etc/rc.d/init.d/httpd force-reload", refreshonly => true, } Should this be paired with a "subscribe" or "notify" somewhere? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Refreshonly will execute when it is either notified or the subscribe resource changes. If there is none of those definition then that Exec will never execute. On Nov 8, 9:49 am, Sean Carolan <scaro...@gmail.com> wrote:> I have inherited some puppet configurations; there is an exec resource > that looks like this: > > exec { "force-reload-httpd": > command => "/etc/rc.d/init.d/httpd force-reload", > refreshonly => true, > > } > > Should this be paired with a "subscribe" or "notify" somewhere?-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Nov 8, 2010 at 6:49 AM, Sean Carolan <scarolan@gmail.com> wrote:> I have inherited some puppet configurations; there is an exec resource > that looks like this: > > exec { "force-reload-httpd": > command => "/etc/rc.d/init.d/httpd force-reload", > refreshonly => true, > } > > Should this be paired with a "subscribe" or "notify" somewhere?The easiest way to locate the dependency is to generate a .dot file with the option --graph. You can either check the output visually or grep for Exec["force-reload-httpd"] and see if it has any relationship (which would be -> to some other resource). Thanks, Nan -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.