Skip to content

Instantly share code, notes, and snippets.

@pkilambi
Last active December 23, 2015 20:49
Show Gist options
  • Save pkilambi/6691679 to your computer and use it in GitHub Desktop.
Save pkilambi/6691679 to your computer and use it in GitHub Desktop.
$ git diff
diff --git a/manifests/repo/rdo.pp b/manifests/repo/rdo.pp
index 9f172d1..7baae49 100644
--- a/manifests/repo/rdo.pp
+++ b/manifests/repo/rdo.pp
@@ -2,10 +2,10 @@
class openstack::repo::rdo {
include openstack::repo::epel
- if $::osfamily == 'RedHat' {
- $dist = $::operatingsystem ? {
- /(CentOS|RedHat|Scientific|SLC)/ => 'epel',
- 'Fedora' => 'fedora',
+ if $::osfamily == 'Redhat' {
+ case $operatingsystem {
+ centos, redhat, scientific, slc: { $dist = 'epel' }
+ fedora: { $dist = 'fedora'}
}
# $lsbmajdistrelease is only available with redhat-lsb installed
$osver = regsubst($::operatingsystemrelease, '(\d+)\..*', '\1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment