Puppet: System Administration Automated

Support

Ticket #837 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

new freebsd service provide

Reported by: trombik Assigned to: community
Priority: normal Milestone:
Component: library Version: 0.23.2
Severity: normal Keywords: FreeBSD
Cc: Triage Stage: Unreviewed
Attached Patches: Code Complexity: Unknown

Description

new freebsd service provider. with this, you can enable or disable services thanks to rc-update script, which is to be distributed with puppet port.

Attachments

patch-provider-service-freebsd (1.5 kB) - added by trombik on 09/26/07 07:17:51.
freebsd.rb (1.0 kB) - added by raj on 10/27/07 02:55:58.
Updated provider that uses rc.conf.d

Change History

09/26/07 07:17:51 changed by trombik

  • attachment patch-provider-service-freebsd added.

09/26/07 14:37:15 changed by trombik

10/04/07 22:19:53 changed by michael

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [f41c843f6263e7bb2b89c109710307c4ab2779bf].

10/09/07 02:25:39 changed by scott77

the rc-update script should also source /etc/defaults/rc.conf (prior to /etc/rc.conf & /etc/rc.conf.local of course)

if a service is enabled by default install, rc-update will still report it disabled because the _enable="YES" is not in /etc/rc.conf but /etc/defaults/rc.conf.

10/09/07 06:18:16 changed by trombik

scott77 is absolutely right. I'll fix rc-update. However, it's not in the ports tree yet. The commiter doesn't like it. He didn't mention why, either.

10/27/07 00:43:53 changed by raj

The committer probably didn't like it because it's unnecessary. All we need to support 'enable' is to drop a file into /etc/rc.conf.d/SERVICE with SERVICE_enable="YES" as its contents. It can also contain other rc variables like SERVICE_flags and the like.

Disabling the service could be implimented either by deleting the file or regenerating it with SERVICE_enable="NO".

10/27/07 02:55:58 changed by raj

  • attachment freebsd.rb added.

Updated provider that uses rc.conf.d

10/27/07 02:59:28 changed by raj

I just noticed this ticket is closed. I'll open I new ticket.