openstack-ansible/scripts
Jean-Philippe Evrard a239b29baf
Implementation of keepalived for haproxy
This commit uses a keepalived role, available in
ansible galaxy, to configure keepalived for haproxy

Keepalived makes the haproxy truely HA, by having
haproxy's VIP highly available between the hosts
defined in the inventory.

The keepalived role configuration is fully
documented on the upstream role.

To configure keepalived on your host, you only have to
give it a variable (dict). A template handles the
generation of the configuration of keepalived.

By default, the variable files defined in vars/configs/
are enough to have a keepalived working for haproxy,
with a master-backup configuration.

You can define other variable files by setting
haproxy_keepalived_(master|backup)_vars in your
user_variables. This should point to a "variable
template" file like the one you can find
in vars/configs/*

The haproxy playbook has been changed to rely on
the dynamic generation script. It will use the env.d
to have haproxy hosts. The first host from the
generated inventory will be considered as master,
while the others are slaves. The keepalived role
will only run if more than haproxy host is found
in the inventory. This behaviour can be changed
and keepalived can be disabled by the variable:
haproxy_use_keepalived.

The implemented variables are the following:
* haproxy_keepalived_(ext|int)ernal_vip_cidr
* haproxy_keepalived_(ext|int)ernal_interface
* haproxy_keepalived_(ext|int)ernal_virtual_router_id
* haproxy_keepalived_priority_backup
* haproxy_keepalived_priority_master
* haproxy_keepalived_vars_file

In these variables, only the following variables
are necessary: keepalived_(ext|int)ernal_vip_cidr
However, it's recommended to also configure the
keepalived_(ext|int)ernal_interface
(to know which interface the vips can bind on)

Closes-Bug: 1414397
Change-Id: Ib87a3bb70d6f4b7ac9356e8a28fe4b5936eb9334
2015-10-07 23:08:41 -05:00
..
bootstrap-aio.sh Added DEBIAN_FRONTEND=noninteractive to bootstrap scripts 2015-09-28 15:04:39 +00:00
bootstrap-ansible.sh Updates ansible role requirements script name 2015-10-01 07:26:24 +00:00
federated-login.sh Support base64 padding in federated tokens 2015-09-21 16:15:06 +00:00
gate-check-commit.sh Set affinity to 1 for OpenStack-CI gate checks 2015-10-07 08:59:13 +00:00
gate-check-docs.sh Add Sphinx machinery and initial docs. 2015-05-14 10:50:05 -04:00
gate-check-lint.sh Implementation of keepalived for haproxy 2015-10-07 23:08:41 -05:00
inventory-manage.py Adds group support to inventory-manage.py 2015-09-21 08:10:57 -05:00
openstack-ansible-role-requirements.py Rename everything for the osad to osa name change 2015-09-12 02:31:21 +01:00
osa-aio-heat-template.yml Rename everything for the osad to osa name change 2015-09-12 02:31:21 +01:00
pw-token-gen.py Add Ceph/RBD support to playbooks 2015-08-01 19:49:00 +01:00
run-aio-build.sh Update the AIO build convenience script 2015-09-24 07:09:09 +00:00
run-playbooks.sh Remove upstream repo dependency 2015-08-24 08:32:07 +01:00
run-tempest.sh Create Junit XML Report from tempest run 2015-06-29 14:38:14 -05:00
run-upgrade.sh Remove Juno to Kilo logic in upgrade script 2015-09-12 04:28:57 +00:00
scripts-library.sh Use pure variable name in $(()) statement 2015-10-02 18:18:49 +00:00
sources-branch-updater.sh Fixes loops for bashate 2015-08-21 15:44:05 +00:00
teardown.sh Merge "Removes /opt/*openstack*/ pattern from teardown." 2015-10-05 18:29:01 +00:00
update-revision.sh Fixes loops for bashate 2015-08-21 15:44:05 +00:00