Skip to content

Commit

Permalink
Move Repo for RHEL systems to EPEL
Browse files Browse the repository at this point in the history
* powerstack.org no longer exists
* Redis is now in EPEL

Closes voxpupuli#103
  • Loading branch information
petems committed Oct 15, 2016
1 parent 3d39dd4 commit fb39594
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions manifests/preinstall.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,8 @@
class redis::preinstall {
if $::redis::manage_repo {
case $::operatingsystem {
'RedHat', 'CentOS', 'Scientific', 'OEL': {
if (versioncmp($::operatingsystemrelease, '7.0') == -1) {
$rpm_url = $::operatingsystemrelease ? {
/^5/ => "http://download.powerstack.org/5/${::architecture}/",
/^6/ => "http://download.powerstack.org/6/${::architecture}/",
default => Fail['Operating system or release not supported.'],
}

$rpm_gpgkey = $::operatingsystemmajrelease ? {
'5' => 'https://raw.githubusercontent.com/santisaez/powerstack/master/RPM-GPG-KEY-powerstack',
'6' => 'https://raw.githubusercontent.com/santisaez/powerstack/master/RPM-GPG-KEY-powerstack',
default => Fail['Operating system or release not supported.'],
}

yumrepo { 'powerstack':
descr => 'PowerStack for CentOS',
baseurl => $rpm_url,
gpgkey => $rpm_gpgkey,
enabled => 1,
gpgcheck => 1;
}
}

if (versioncmp($::operatingsystemmajrelease, '7') >= 0) {
require ::epel
}
}

'Amazon': {
$rpm_url = $::operatingsystemmajrelease ? {
'3' => "http://download.powerstack.org/6/${::architecture}/",
default => Fail['Operating system or release version not supported.'],
}

$rpm_gpgkey = $::operatingsystemmajrelease ? {
'3' => 'https://raw.githubusercontent.com/santisaez/powerstack/master/RPM-GPG-KEY-powerstack',
default => Fail['Operating system or release version not supported.'],
}

yumrepo { 'powerstack':
descr => 'PowerStack for CentOS',
baseurl => $rpm_url,
gpgkey => $rpm_gpgkey,
enabled => 1,
gpgcheck => 1;
}
'RedHat', 'CentOS', 'Scientific', 'OEL', 'Amazon': {
require ::epel
}

'Debian': {
Expand Down

0 comments on commit fb39594

Please sign in to comment.