Puppet: System Administration Automated

Support

Ticket #738 (new enhancement)

Opened 1 year ago

Last modified 9 months ago

Add runlevel functionality to service-resource for gentoo

Reported by: KillerFox Assigned to: luke
Priority: normal Milestone: unplanned
Component: Gentoo Version: 0.23.0
Severity: normal Keywords:
Cc: Triage Stage: Needs more info
Attached Patches: Insufficient Complexity: Unknown

Description

This patch allows user to specify to which runlevel a given service under gentoo should be added. Default value is default. Example:

service { "dcron":
    enable => true,
    ensure => running,
    runlevel => system,
    provider => gentoo
}

Attachments

puppet-0.23.0-gentoo-init-try1.diff (2.3 kB) - added by KillerFox on 07/25/07 22:24:20.

Change History

07/25/07 22:24:20 changed by KillerFox

  • attachment puppet-0.23.0-gentoo-init-try1.diff added.

08/01/07 00:01:19 changed by luke

  • patch changed from Code to Insufficient.
  • stage changed from Unreviewed to Accepted.
  • milestone set to unplanned.

This patch doesn't follow the existing method for managing runlevels, so it won't really work.

The ability to specify runlevels should be a provider feature, so that we can differentiate between those that can and can't.

09/14/07 01:24:57 changed by ramon

Luke,

I just had a look at this because I figured I could solve this and found a couple of things:

  • I can't figure what you mean by "The ability to specify runlevels should be a provider feature, so that we can differentiate between those that can and can't." I suspect that you are unhappy with the patching of service.rb but I'm unclear on how to solve this in the provider. AFAIK there is no existing method to manage runlevels ?
  • I think current gentoo service provider had a bug that will cause puppet to reenable services in the "boot" runlevel every puppet-client run. It only looks at the "default" runlevel

02/13/08 14:39:32 changed by jamtur01

Killer Fox? - Luke means a "feature" like support for Shadow passwords in the user type. Have a look at that for an approach. That way it can be turned on or off for different providers for which its relevant.

04/24/08 07:53:17 changed by luke

  • component changed from installer to Gentoo.

04/24/08 15:28:16 changed by jamtur01

  • stage changed from Accepted to Needs more info.

Any interest in updating this patch to use features? Otherwise I'll close the ticket.