Skip to content

Commit

Permalink
Use unix specific provider for cron on solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
jaym committed Mar 24, 2015
1 parent c4ec506 commit d1f7d3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef/provider/cron.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Provider
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]
Expand Down
2 changes: 2 additions & 0 deletions lib/chef/provider/cron/unix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Cron
class Unix < Chef::Provider::Cron
include Chef::Mixin::ShellOut

provides :cron, os: 'solaris2'

private

def read_crontab
Expand Down

0 comments on commit d1f7d3f

Please sign in to comment.