Jeff, you''re pointing at a different Exec than the one that you showed (Exec[avahi-dnsconfd-stop]). M. Jeff wrote:> This barfs and I''m not sure why: > > exec { "avahi-daemon-stop": > onlyif => "test -e /etc/init.d/avahi-daemon && /etc/init.d/avahi- > daemon status | egrep -q -i running", > command => "service avahi-daemon stop"; > } > > It produces the following error (which I''m trying to eliminate): > > err: /Class[main]/Node[kendricks.joedog.org]/Class[harden::linux]/ > Exec[avahi-dnsconfd-stop]: Failed to retrieve current state of > resource: Could not find executable /etc/init.d/avahi-dnsconfd > > I''d like to execute service avahi-daemon stop onlyif it exists AND > it''s running. Some help would be appreciated. > > TIA, > Jeff > > >--~--~---------~--~----~------------~-------~--~----~ 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 Jul 31, 10:34 am, Massimo Mongardini <massimo.mongard...@gmail.com> wrote:> Jeff, > you''re pointing at a different Exec than the one that you showed > (Exec[avahi-dnsconfd-stop]). > M. >There''s a word for people like me... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff wrote:> On Jul 31, 10:34 am, Massimo Mongardini <massimo.mongard...@gmail.com> > wrote: > >> Jeff, >> you''re pointing at a different Exec than the one that you showed >> (Exec[avahi-dnsconfd-stop]). >> M. >> >> > > There''s a word for people like me... > > >I think it''s simply... sysadmin ;) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---