Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Red Hat 7.1 and later. #6

Merged
merged 1 commit into from
Nov 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ platforms:
- name: ubuntu-14.04
- name: ubuntu-16.04
- name: centos-7.1
- name: centos-7.2
- name: windows-2012r2

suites:
Expand Down
7 changes: 4 additions & 3 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
license 'All rights reserved'
description 'Installs/Configures dotnetcore'
long_description 'Installs/Configures dotnetcore'
version '1.1.0'
version '1.1.1'

depends 'apt', '~> 2.9.2'
depends 'tar'

supports 'ubuntu', '= 14.04'
supports 'ubuntu', '= 16.04'
supports 'centos', '= 7.1'
supports 'oracle', '= 7.1'
supports 'centos', '>= 7.1'
supports 'oracle', '>= 7.1'
supports 'redhat', '>= 7.1'
supports 'amazon'
supports 'windows'

Expand Down
8 changes: 4 additions & 4 deletions recipes/_platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# All rights reserved - Do Not Redistribute
#

case node['platform']
case node['platform_family']
when 'windows'
include_recipe 'dotnetcore::_windows'
when 'debian', 'ubuntu'
when 'debian'
include_recipe 'dotnetcore::_ubuntu'
when 'centos', 'amazon', 'oracle'
when 'rhel'
include_recipe 'dotnetcore::_tar_install'
else
fail 'This cookbook currently only supports Debian/Ubuntu, CentOS/Amazon/Oracle, and Windows.'
fail 'This cookbook currently only supports Debian/Ubuntu, CentOS/Amazon/Oracle/RHEL, and Windows.'
end