diff options
author | 2017-04-07 02:39:21 +0000 | |
---|---|---|
committer | 2017-04-07 02:39:21 +0000 | |
commit | 222b1e0b169705c2536cf0b9b7303458e42849cc (patch) | |
tree | 088c3a8a83833fd16199d1b0ca9e45790efcb7dd /manifests | |
parent | 459055a08aaa2f916b16ba95976f7144b7d2909b (diff) | |
parent | e51209be196597aa0fe035f1f53354649224ecb7 (diff) |
Merge "Adding OVNDBs vip to keepalive"
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/keepalived.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/keepalived.pp b/manifests/keepalived.pp index a6d5832..aa0e5d6 100644 --- a/manifests/keepalived.pp +++ b/manifests/keepalived.pp @@ -59,6 +59,12 @@ # A string. # Defaults to false # +# [*ovndbs_virtual_ip*] +# Virtual IP on the OVNDBs service. +# A string. +# Defaults to false +# + class tripleo::keepalived ( $controller_virtual_ip, $control_virtual_interface, @@ -68,6 +74,7 @@ class tripleo::keepalived ( $storage_virtual_ip = false, $storage_mgmt_virtual_ip = false, $redis_virtual_ip = false, + $ovndbs_virtual_ip = false, ) { case $::osfamily { @@ -178,4 +185,15 @@ class tripleo::keepalived ( priority => 101, } } + if $ovndbs_virtual_ip and $ovndbs_virtual_ip != $controller_virtual_ip { + $ovndbs_virtual_interface = interface_for_ip($ovndbs_virtual_ip) + # KEEPALIVE OVNDBS MANAGEMENT NETWORK + keepalived::instance { '57': + interface => $ovndbs_virtual_interface, + virtual_ips => [join([$ovndbs_virtual_ip, ' dev ', $ovndbs_virtual_interface])], + state => 'MASTER', + track_script => ['haproxy'], + priority => 101, + } + } } |