|
<%#
|
|
kind: snippet
|
|
name: epel
|
|
%>
|
|
|
|
<%
|
|
epel_url = 'http://dl.fedoraproject.org/pub/epel/$major/$arch/epel-release-$os.noarch.rpm'
|
|
|
|
case @host.operatingsystem.major
|
|
when '4'
|
|
epel_url.gsub!('$os','4-10')
|
|
when '5'
|
|
epel_url.gsub!('$os','5-4')
|
|
when '6'
|
|
epel_url.gsub!('$os','6-8')
|
|
when '7'
|
|
epel_url = 'http://dl.fedoraproject.org/pub/epel/7/$arch/e/epel-release-7-2.noarch.rpm'
|
|
else
|
|
''
|
|
end
|
|
-%>
|
|
su -c 'rpm -Uvh <%= @host.os.medium_uri(@host, epel_url) %>'
|