Puppet: System Administration Automated

Support

Ticket #251 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Suport for enable in service for suse

Reported by: Martin Vuk <martin.vuk@fri.uni-lj.si> Assigned to: luke
Priority: normal Milestone:
Component: types Version:
Severity: normal Keywords: suse service enable
Cc: Triage Stage:
Attached Patches: Complexity:

Description

Below is the patch for enabling service in SuSE linux. chkconfig behaves just a little different in suse than in redhat.

Index: lib/puppet/provider/service/redhat.rb =================================================================== --- lib/puppet/provider/service/redhat.rb (revision 1519) +++ lib/puppet/provider/service/redhat.rb (working copy) @@ -6,7 +6,7 @@

confine :exists => "/sbin/chkconfig"

- defaultfor :operatingsystem => [:redhat, :fedora] + defaultfor :operatingsystem => [:redhat, :fedora, :suse]

# Remove the symlinks def disable

@@ -25,7 +25,12 @@

rescue Puppet::Execution Failure?

return :false

end

- + # If it's disabled on SuSE, then it will print output showing "off" + # at the end + if output =~ /.* off$/ + return :false + end +

return :true

end

Attachments

suse.service.diff (0.7 kB) - added by martin vuk on 08/30/06 13:49:20.
patch for enable in service for suse

Change History

08/30/06 13:49:20 changed by martin vuk

  • attachment suse.service.diff added.

patch for enable in service for suse

09/03/06 03:56:58 changed by luke

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

Applied in [1535].