Files
compass-adapters/chef/cookbooks/yum-erlang_solutions/attributes/erlang_solutions.rb
xiaodongwang 20dcf7c257 update adapter config to support multi os versions
Change-Id: Icfd90d09ed55f3f0723a77642cc803d39440896d
2015-01-22 13:59:51 -08:00

11 lines
620 B
Ruby

case node['platform_family']
when 'rhel'
default['yum']['erlang_solutions']['baseurl'] = 'http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch'
else
default['yum']['erlang_solutions']['baseurl'] = 'http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch'
end
default['yum']['erlang_solutions']['description'] = 'Centos $releasever - $basearch - Erlang Solutions'
default['yum']['erlang_solutions']['gpgkey'] = 'http://packages.erlang-solutions.com/debian/erlang_solutions.asc'
default['yum']['erlang_solutions']['gpgcheck'] = false
default['yum']['erlang_solutions']['enabled'] = true