Amos Shapira
2008-Apr-30 22:39 UTC
[Puppet Users] configuring services not to auto-run ("chkconfig off service")
Hello, I use puppet to configure CentOS 5 servers which have services controlled by linux-ha (heartbeat). This means that these services have to be configured by chkconfig (e.g. "chkconfig --add httpd") but NOT to execute automatically on boot (i.e. "chkconfig httpd off"). Currently, from looking at the source of puppet (version 0.22.4, installed from RPM from http://people.redhat.com/dlutter/yum/rhel/5/) it appears that puppet ties the two - when a service is disabled it is also deleted ("chkconfig --del httpd"). Right now I just keep puppet from controlling these service and do it "manually" in external scripts, but is there a proper way to do this without having to hack puppet too much? Thanks, --Amos --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-May-01 12:31 UTC
[Puppet Users] Re: configuring services not to auto-run ("chkconfig off service")
Hi> Right now I just keep puppet from controlling these service and do it > "manually" in external scripts, but is there a proper way to do this > without having to hack puppet too much?extend puppet''s provider for redhat services. it is lib/puppet/provider/service/redhat.rb . I think you might subclass it to a new provider or add a certain parameter which would then force your needs, but by default keep it the same as it is now. Would be nice if you can provide a patch for that. :) greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-May-01 14:52 UTC
[Puppet Users] Re: configuring services not to auto-run ("chkconfig off service")
Peter Meier wrote:> Hi > > >> Right now I just keep puppet from controlling these service and do it >> "manually" in external scripts, but is there a proper way to do this >> without having to hack puppet too much? >> > > extend puppet''s provider for redhat services. it is > lib/puppet/provider/service/redhat.rb . > I think you might subclass it to a new provider or add a certain > parameter which would then force your needs, but by default keep it the > same as it is now. > Would be nice if you can provide a patch for that. :) > >I agree. I recently submitted a number of changes to the provider to support use of /sbin/service instead of direct calls to init scripts (to accomodate SELinux) and I am happy to test additional changes if it furthers development of the provider to better suit Red Hat norms. Regards James Turnbull --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---