Skip to content

Commit

Permalink
Closes-Bug: #1611599
Browse files Browse the repository at this point in the history
To fix multiple VIP's case(multiple declaration of keepalived class),
Move back centos check in params.pp.

Change-Id: Ieb1c606f7e4f5e8b560c708fbc509f4d3af3ffb3
  • Loading branch information
kamleshp committed Aug 12, 2016
1 parent feba73b commit 07b24fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Expand Up @@ -66,18 +66,5 @@
} ->
Class['::keepalived']

# for contrail HA, use correct keepalived version for centos
if ($lsbdistrelease == "14.04") {
$pkg_ensure = '1.2.13-0~276~ubuntu14.04.1'
} elif ($::operatingsystem == 'Centos' or $::operatingsystem == 'Fedora') {
$pkg_ensure = 'present'
} else {
$pkg_ensure = '1:1.2.13-1~bpo70+1'
}

class { '::keepalived' :
pkg_ensure => $pkg_ensure
}

contain ::keepalived
}
9 changes: 9 additions & 0 deletions contrail/environment/modules/keepalived/manifests/params.pp
Expand Up @@ -6,6 +6,15 @@
$service_ensure = 'running'
$service_manage = true

# for contrail HA, use correct keepalived version for centos
if ($lsbdistrelease == "14.04") {
$pkg_ensure = '1.2.13-0~276~ubuntu14.04.1'
} elsif ($::operatingsystem == 'Centos' or $::operatingsystem == 'Fedora') {
$pkg_ensure = 'present'
} else {
$pkg_ensure = '1:1.2.13-1~bpo70+1'
}

case $::osfamily {
'redhat': {
$config_dir = '/etc/keepalived'
Expand Down

0 comments on commit 07b24fa

Please sign in to comment.