Skip to content

Commit

Permalink
Removing requirement for EPEL on RedHat/Centos and use
Browse files Browse the repository at this point in the history
  erlang-solutions repository by default.
  • Loading branch information
smbambling committed Sep 5, 2015
1 parent a8f29a4 commit ecba08c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
10 changes: 0 additions & 10 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# Defaults to present.
#
class erlang (
$epel_enable = $erlang::params::epel_enable,
$key_signature = $erlang::params::key_signature,
$local_repo_location = $erlang::params::local_repo_location,
$package_name = $erlang::params::package_name,
Expand All @@ -26,16 +25,7 @@
include '::erlang::repo::apt'
}
'RedHat' : {
if $epel_enable {
# Include epel as this is a requirement for erlang in RHEL6.
include '::epel'
Class['epel'] -> Package[$package_name]
}

# This is only needed on RHEL5, RHEL6 has erlang in EPEL.
if $::operatingsystemrelease =~ /^5/ {
include '::erlang::repo::yum'
}
}
default : {
}
Expand Down
5 changes: 2 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# operating systems
#
class erlang::params {
$epel_enable = false

case $::osfamily {
'Debian' : {
Expand All @@ -23,8 +22,8 @@
$local_repo_location = '/etc/yum.repos.d/epel-erlang.repo'
$remote_repo_location = 'https://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo'
} else {
$local_repo_location = undef
$remote_repo_location = undef
$local_repo_location = '/etc/yum.repos.d/erlang-solutions.repo'
$remote_repo_location = 'http://packages.erlang-solutions.com/rpm/centos/erlang_solutions.repo'
}

$remote_repo_key_location = undef
Expand Down
8 changes: 5 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@
},
{
"name": "puppet",
"version_requirement": "3.x"
"version_requirement": [
"3.x",
"4.x"
]
}
],
"dependencies": [
{ "name": "puppetlabs/stdlib", "version_requirement": ">=2.0.0 <5.0.0" },
{ "name": "puppetlabs/apt", "version_requirement": ">=2.1.0" },
{ "name": "stahnma/epel", "version_requirement": ">=1.0.0 <2.0.0" }
{ "name": "puppetlabs/apt", "version_requirement": ">=2.1.0" }
]
}

0 comments on commit ecba08c

Please sign in to comment.