From e6b230d78436dfb7b38b1c30c4a9325909ae1d20 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sat, 6 Feb 2016 22:18:01 +0800 Subject: [PATCH] Add authentication for keepalived TrivialFix Closes-Bug: #1551314 Change-Id: Id85859500aec283703b6b6714abf213a42286182 --- ansible/roles/haproxy/templates/keepalived.conf.j2 | 8 ++++++++ etc/kolla/passwords.yml | 1 + 2 files changed, 9 insertions(+) diff --git a/ansible/roles/haproxy/templates/keepalived.conf.j2 b/ansible/roles/haproxy/templates/keepalived.conf.j2 index dee8a6e5e6..d599ea7217 100644 --- a/ansible/roles/haproxy/templates/keepalived.conf.j2 +++ b/ansible/roles/haproxy/templates/keepalived.conf.j2 @@ -14,6 +14,10 @@ vrrp_instance kolla_internal_vip { virtual_ipaddress { {{ kolla_internal_vip_address }} } + authentication { + auth_type PASS + auth_pass {{ keepalived_password }} + } track_script { check_alive } @@ -29,6 +33,10 @@ vrrp_instance kolla_external_vip { virtual_ipaddress { {{ kolla_external_vip_address }} } + authentication { + auth_type PASS + auth_pass {{ keepalived_password }} + } track_script { check_alive } diff --git a/etc/kolla/passwords.yml b/etc/kolla/passwords.yml index b0c2d99655..deed018da9 100644 --- a/etc/kolla/passwords.yml +++ b/etc/kolla/passwords.yml @@ -86,3 +86,4 @@ rabbitmq_cluster_cookie: "password" # HAProxy options #################### haproxy_password: "password" +keepalived_password: "password"