default['cron']['package_name'] = case node['platform_family']
                                  when 'debian'
                                    ['cron']
                                  when 'rhel', 'fedora'
                                    node['platform_version'].to_f >= 6.0 ? ['cronie'] : ['vixie-cron']
                                  when 'solaris2'
                                    ['core-os']
                                  else
                                    []
                                  end

default['cron']['service_name'] = case node['platform_family']
                                  when 'rhel', 'fedora'
                                    'crond'
                                  else
                                    'cron'
                                  end

# I think we can add Solaris to this list, but I don't have a Solaris box to test on.
# If so, remove the fail() in providers/d.rb
default['cron']['emulate_cron.d'] = case node['platform_family']
                                    when 'freebsd'
                                      true
                                    else
                                      false
                                    end

default['cron']['package_name'] = case node['platform_family']
                                  when 'debian'
                                    ['cron']
                                  when 'rhel', 'fedora'
                                    node['platform_version'].to_f >= 6.0 ? ['cronie'] : ['vixie-cron']
                                  when 'solaris2'
                                    'core-os'
                                  else
                                    []
                                  end

default['cron']['service_name'] = case node['platform_family']
                                  when 'rhel', 'fedora'
                                    'crond'
                                  else
                                    'cron'
                                  end

# I think we can add Solaris to this list, but I don't have a Solaris box to test on.
# If so, remove the fail() in providers/d.rb
default['cron']['emulate_cron.d'] = case node['platform_family']
                                    when 'freebsd'
                                      true
                                    else
                                      false
                                    end

Fix the installation of the core-os package on Solaris
Fix the installation of the core-os package on Solaris

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
