aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/keepalived.pp
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2017-03-10 10:57:30 -0500
committerDan Radez <dradez@redhat.com>2017-03-10 14:12:03 -0500
commite51209be196597aa0fe035f1f53354649224ecb7 (patch)
treefe4e32297f2763a281aa87cb4d54b5e98a854465 /manifests/keepalived.pp
parentd73c2630b534b277122db68620be8923c4d3a6b4 (diff)
Adding OVNDBs vip to keepalive
Change-Id: I56f7e3280eda6fe3cc8dd677ad06b700ef504829
Diffstat (limited to 'manifests/keepalived.pp')
-rw-r--r--manifests/keepalived.pp18
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,
+ }
+ }
}