Issue #2482 has been reported by Robin Bowes. ---------------------------------------- Feature #2482: Add additional property to service type: "service_name" http://projects.reductivelabs.com/issues/2482
Author: Robin Bowes Status: Unreviewed Priority: Normal Assigned to: Category: service Target version: Complexity: Unknown Affected version: 0.24.8 Keywords: Currently, the service name of a service type definition is taken from its name. So, a service definition with name "sshd" and provider => "redhat" would manage the /etc/init.d/sshd service, and one with the same name but with provider => "runit" would manage the /etc/sv/sshd service. However, it is not possible to have two service definitions with the same name. This means it is not possible to have a redhat service and a runit service with the same name. I propose adding a new property to the service type: service_name This will be used instead of the "name" property through the service provider code as the name of the service to control. If it is not defined the code should default to using the "name" property, ie. same as current behaviour. The steps needed to implement this are: # Add service_name property to service type # Add a function "service_name" that returns the service_name property if defined, otherwise returns the name property # replace all uses of "name" throughout all service providers with the service_name function I'd code this myself, but I really don't know ruby well enough, and I don't have the idle cycles at the moment to spend time getting up to speed. Thanks, R. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
