summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJJ Asghar <jj@getchef.com>2014-09-05 11:21:25 -0500
committerJJ Asghar <jj@getchef.com>2014-09-05 12:03:04 -0500
commit4e8315e66c7d07383da61829bded48b2ee823b52 (patch)
tree86f69e3fc7ebdd59e4c85691570f7be7e07ed999
parent7e93d3f41d516ec9d2f1f84d33efa1ba1a9b6164 (diff)
downloadchef-4e8315e66c7d07383da61829bded48b2ee823b52.tar.gz
Added Upstart as the default for 14.04 Ubuntuubuntu1404_default_provider
This is to add the default provider for services for Ubuntu for 14.04 It is referanced in the proposed rfc [here](https://github.com/opscode/chef-rfc/pull/44). I commented out `> 14.04` because it's still up for debate in the community.
-rw-r--r--lib/chef/platform/provider_mapping.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/chef/platform/provider_mapping.rb b/lib/chef/platform/provider_mapping.rb
index 7f79c38a6a..26fbb11ae7 100644
--- a/lib/chef/platform/provider_mapping.rb
+++ b/lib/chef/platform/provider_mapping.rb
@@ -69,9 +69,17 @@ class Chef
:cron => Chef::Provider::Cron,
:mdadm => Chef::Provider::Mdadm
},
- ">= 11.10" => {
+ ">= 13.10" => {
:ifconfig => Chef::Provider::Ifconfig::Debian
- }
+ },
+ "= 14.04" => {
+ :service => Chef::Provider::Service::Upstart
+ },
+ # "> 14.04" => {
+ # :service => Chef::Provider::Service::Systemd
+ # },
+ # Commenting out > 14.04 to see what the Canonical decides to do
+ # after 14.04.
# Chef::Provider::Service::Upstart is a candidate to be used in
# ubuntu versions >= 13.10 but it currently requires all the
# services to have an entry under /etc/init. We need to update it