Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Support passing option to package on rhel as well
Browse files Browse the repository at this point in the history
Change-Id: I3343e2ad18f24a1550c906a0b8a017986dce533a
  • Loading branch information
kamaradclimber committed Jul 25, 2017
1 parent 4125800 commit f74a987
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
# Mesosphere Mesos version.
default['mesos']['version'] = '1.1.0'

default['mesos']['package_options'] = ['--no-install-recommends']
default['mesos']['package_options'] = case node['platform_family']
when 'debian'
['--no-install-recommends']
when 'rhel'
[]
end

# Init system to use
default['mesos']['init'] = case node['platform']
Expand Down
3 changes: 2 additions & 1 deletion recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
package 'mesos' do
action :install
# --no-install-recommends to skip installing zk. unnecessary.
options node['mesos']['package_options']
options node['mesos']['package_options'].join(' ')
# Glob is necessary to select the deb version string
version "#{node['mesos']['version']}*"
end
Expand All @@ -53,6 +53,7 @@

yum_package 'mesos' do
version node['mesos']['version']
options node['mesos']['package_options'].join(' ')
end
end

Expand Down

0 comments on commit f74a987

Please sign in to comment.