-
Notifications
You must be signed in to change notification settings - Fork 21
/
install.pp
33 lines (29 loc) · 1014 Bytes
/
install.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class contrail::config::install(
$contrail_host_roles = $::contrail::params::host_roles,
$contrail_internal_vip = $::contrail::params::contrail_internal_vip,
$internal_vip = $::contrail::params::internal_vip,
) {
# Install a specific version of keepalived in non-ha
# case also, to support upgrade of contrail software.
# Below code is not required when keepalive dependency is fixed.
#
if ($contrail_internal_vip == "" and ($internal_vip == "" or !('openstack' in $contrail_host_roles))) {
if ($lsbdistrelease == "14.04") {
$keepalived_pkg = '1.2.13-0~276~ubuntu14.04.1'
} else {
$keepalived_pkg = '1:1.2.13-1~bpo70+1'
}
package { 'keepalived' :
ensure => $keepalived_pkg,
}
->
service { "keepalived" :
enable => false,
ensure => stopped,
}
Package['keepalived'] -> Package['contrail-openstack-config']
}
package { 'contrail-openstack-config' :
ensure => latest
}
}