summaryrefslogtreecommitdiff
path: root/lib/chef/platform.rb
diff options
context:
space:
mode:
authorAJ Christensen <aj@junglist.gen.nz>2008-09-25 03:28:01 +1200
committerAJ Christensen <aj@junglist.gen.nz>2008-09-25 03:28:01 +1200
commit904ae12c1303a5cdc08b9f972ef707a922b03f15 (patch)
tree812eb1dbf09eb366585caf7c36feca612c85fcb0 /lib/chef/platform.rb
parent169f02ef3cfaf9a15c5fc9e339a099223330b78a (diff)
downloadchef-904ae12c1303a5cdc08b9f972ef707a922b03f15.tar.gz
Working Debian service provider for enabling/disabling services.
TODO: Base and Init providers that support status and start/stopping init scripts.
Diffstat (limited to 'lib/chef/platform.rb')
-rw-r--r--lib/chef/platform.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb
index 0345445fbe..c6c4a7580c 100644
--- a/lib/chef/platform.rb
+++ b/lib/chef/platform.rb
@@ -27,6 +27,7 @@ class Chef
:ubuntu => {
:default => {
:package => Chef::Provider::Apt,
+ :service => Chef::Provider::Debian,
}
},
:centos => {},
@@ -43,6 +44,7 @@ class Chef
:sysctl => Chef::Provider::Sysctl,
:execute => Chef::Provider::Execute,
:script => Chef::Provider::Script,
+ :service => Chef::Provider::Init,
:perl => Chef::Provider::Script,
:python => Chef::Provider::Script,
:ruby => Chef::Provider::Script,
@@ -190,4 +192,4 @@ class Chef
end
end
-end \ No newline at end of file
+end