summaryrefslogtreecommitdiff
path: root/lib/chef/platform/provider_mapping.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-10 15:16:05 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-10 15:16:05 -0700
commit6a9aab14f1b6ee3c654ec947ef4484aa3a507dbc (patch)
tree5c27a2abc6becc0ef1dc8f432954bdff2b424d9a /lib/chef/platform/provider_mapping.rb
parente25a7e4af2752d79041bd469a1daf4c9347e8cb6 (diff)
parentb7fff7dbcf4f6afd8ffd8d463093c68a114afa22 (diff)
downloadchef-6a9aab14f1b6ee3c654ec947ef4484aa3a507dbc.tar.gz
Merge pull request #2052 from mapleoin/suse-systemd
change default service mapping for SLES to systemd
Diffstat (limited to 'lib/chef/platform/provider_mapping.rb')
-rw-r--r--lib/chef/platform/provider_mapping.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/platform/provider_mapping.rb b/lib/chef/platform/provider_mapping.rb
index 0766ccffa7..6f5cde87ca 100644
--- a/lib/chef/platform/provider_mapping.rb
+++ b/lib/chef/platform/provider_mapping.rb
@@ -197,10 +197,13 @@ class Chef
},
:suse => {
:default => {
- :service => Chef::Provider::Service::Redhat,
+ :service => Chef::Provider::Service::Systemd,
:cron => Chef::Provider::Cron,
:package => Chef::Provider::Package::Zypper,
:group => Chef::Provider::Group::Suse
+ },
+ "< 12.0" => {
+ :service => Chef::Provider::Service::Redhat
}
},
:oracle => {