aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-02-06 22:18:01 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-03-04 21:28:01 +0800
commite6b230d78436dfb7b38b1c30c4a9325909ae1d20 (patch)
tree04ad20275dfa7896d5c3537e07e0ad985dc68ad8
parentebc1bbb08132f1cc638ea3c18773ce95fbe421c4 (diff)
downloadkolla-e6b230d78436dfb7b38b1c30c4a9325909ae1d20.tar.gz
kolla-e6b230d78436dfb7b38b1c30c4a9325909ae1d20.zip
Add authentication for keepalived
TrivialFix Closes-Bug: #1551314 Change-Id: Id85859500aec283703b6b6714abf213a42286182
-rw-r--r--ansible/roles/haproxy/templates/keepalived.conf.j28
-rw-r--r--etc/kolla/passwords.yml1
2 files changed, 9 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/templates/keepalived.conf.j2 b/ansible/roles/haproxy/templates/keepalived.conf.j2
index dee8a6e5e..d599ea721 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 b0c2d9965..deed018da 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"