On 15 May 2011 20:27, Matthias Saou < th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net> wrote:
> Dan Bode <d...@puppetlabs.com> wrote: > > > I have an implementation question: > > > > 1. Why are you doing the chkconfig exec: > > > > exec { "chkconfig ${title} on": > > notify => Service["xinetd"], > > path => [ "/sbin", "/bin" ], > > onlyif => "chkconfig --list ${title} | egrep -q 'off$'", > > } > > > > > > why doesnt: > > > > service { $title: > > enable => 'true' > > } > > > > work for this? > > Fair question. I'm guessing that I assumed initially that the xinetd > "sub-services" wouldn't work with the puppet provider. I'm now guessing > that I should do some testing again and simplify this accordingly. > Isn't the difference that IF the service doesn't exist then it won't fail, whereas the standard service enable definition will need to service to exist? Unless I'm missing something in the bigger picture, this is an area, only doing stuff if the files are there to have stuff done upon them, where puppet seems to fall short. Thanks Chris -- 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.