summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-24 20:09:10 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-24 20:09:10 -0700
commit7ebb11ce0dbdec76562eb1008a8d85faad0cdaf4 (patch)
treecaee87e7f1b9c8aff9d38a0f4364055932de7255
parentb9470a61c4b89903d0915af3da2431fe3bf3a6e3 (diff)
parentd1f7d3f3526d50e072c062bd9a8e9715714355bd (diff)
downloadchef-7ebb11ce0dbdec76562eb1008a8d85faad0cdaf4.tar.gz
Merge pull request #3139 from chef/jdm/solaris-cron
Use unix specific provider for cron on solaris
-rw-r--r--lib/chef/provider/cron.rb2
-rw-r--r--lib/chef/provider/cron/unix.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/provider/cron.rb b/lib/chef/provider/cron.rb
index 4b7836947e..6d86e336ec 100644
--- a/lib/chef/provider/cron.rb
+++ b/lib/chef/provider/cron.rb
@@ -25,7 +25,7 @@ class Chef
class Cron < Chef::Provider
include Chef::Mixin::Command
- provides :cron, os: "!aix"
+ provides :cron, os: ["!aix", "!solaris2"]
SPECIAL_TIME_VALUES = [:reboot, :yearly, :annually, :monthly, :weekly, :daily, :midnight, :hourly]
CRON_ATTRIBUTES = [:minute, :hour, :day, :month, :weekday, :time, :command, :mailto, :path, :shell, :home, :environment]
diff --git a/lib/chef/provider/cron/unix.rb b/lib/chef/provider/cron/unix.rb
index 350f8bda18..0750c0420b 100644
--- a/lib/chef/provider/cron/unix.rb
+++ b/lib/chef/provider/cron/unix.rb
@@ -27,6 +27,8 @@ class Chef
class Unix < Chef::Provider::Cron
include Chef::Mixin::ShellOut
+ provides :cron, os: 'solaris2'
+
private
def read_crontab