midonet::repository::centos to support only CentOS 7

Change-Id: Ia74ee1eb750ac5dc5d09269b0bd30b6f49a16356
This commit is contained in:
Alejandro Andreu
2016-07-07 15:26:38 +02:00
parent 9a033fb81a
commit d7e85fb851

View File

@@ -7,7 +7,7 @@
#
# === Copyright
#
# Copyright (c) 2015 Midokura SARL, All Rights Reserved.
# Copyright (c) 2016 Midokura SARL, All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -34,8 +34,7 @@ class midonet::repository::centos (
{
# Adding repository for CentOS
notice('Adding midonet sources for RedHat-like distribution')
if ($::operatingsystemmajrelease == 6 or
$::operatingsystemmajrelease == 7) {
if "${::operatingsystemmajrelease}" == '7' {
yumrepo { 'midonet':
baseurl => "${midonet_repo}/${::operatingsystemmajrelease}/${midonet_stage}",