Remove snowflaked keepalived config

Keepalived is not different than the rest, and it could use the
group vars for its configuration.

Change-Id: I3fbf9edd0c7e3c0771ea18c4022c9c3cda5ff99c
This commit is contained in:
Jean-Philippe Evrard 2017-05-19 13:33:30 +00:00
parent 028fd55d70
commit 39900e1bcc
8 changed files with 25 additions and 22 deletions

View File

@ -152,11 +152,12 @@ Deploying the role
run the ``repo-build.yml`` play later so that wheels for your packages will
be included in the repository infrastructure.
#. Make any required adjustments to the load balancer configuration
(e.g. modify ``playbooks/vars/configs/haproxy_config.yml`` in the
(e.g. modify ``playbooks/inventory/group_vars/all/haproxy.yml`` in the
OpenStack-Ansible source repository on your deploy host) so that your
service can be reached through a load balancer, if appropriate, and be sure
to run the ``haproxy-install.yml`` play later so your changes will be
applied.
applied. Please note, you can also use ``haproxy_extra_services`` variable
if you don't want to provide your service as default for everyone.
#. Put together a service install playbook file for your role. This can also
be modeled from any existing service playbook that has similar
dependencies to your service (database, messaging, storage drivers,

View File

@ -720,18 +720,15 @@
# Edit the ``/etc/openstack_deploy/user_variables.yml``:
# keepalived_use_latest_stable: True
#
# The HAProxy playbook reads the ``vars/configs/keepalived_haproxy.yml``
# variable file and provides content to the keepalived role for
# keepalived master and backup nodes.
# The group_vars/all/keepalived.yml contains the keepalived
# variables that are fed into the keepalived role during
# the haproxy playbook.
# You can change the keepalived behavior for your
# deployment. Refer to the ``user_variables.yml`` file for
# more information.
#
# Keepalived pings a public IP address to check its status. The default
# address is ``193.0.14.129``. To change this default,
# set the ``keepalived_ping_address`` variable in the
# ``user_variables.yml`` file.
#
# You can define additional variables to adapt keepalived to your
# deployment. Refer to the ``user_variables.yml`` file for
# more information. Optionally, you can use your own variable file.
# For example:
# haproxy_keepalived_vars_file: /path/to/myvariablefile.yml
#

View File

@ -142,7 +142,11 @@ debug: false
#ssh_delay: 5
## HAProxy
## HAProxy and keepalived
# All the previous variables are used inside a var, in the group vars.
# You can override the current keepalived definition (see
# group_vars/all/keepalived.yml) in your user space if necessary.
#
# Uncomment this to disable keepalived installation (cf. documentation)
# haproxy_use_keepalived: False
#
@ -167,7 +171,3 @@ debug: false
# Keepalived default IP address used to check its alive status (IPv4 only)
# keepalived_ping_address: "193.0.14.129"
# All the previous variables are used in a var file, fed to the keepalived role.
# To use another file to feed the role, override the following var:
# haproxy_keepalived_vars_file: 'vars/configs/keepalived_haproxy.yml'

View File

@ -29,8 +29,6 @@
when: haproxy_use_keepalived | bool
tags:
- keepalived
vars_files:
- "{{ haproxy_keepalived_vars_file | default('vars/configs/keepalived_haproxy.yml') }}"
vars:
is_metal: "{{ properties.is_metal|default(false) }}"
environment: "{{ deployment_environment_variables | default({}) }}"
@ -70,8 +68,6 @@
- rsyslog
post_tasks:
- include: common-tasks/package-cache-proxy.yml
vars_files:
- vars/configs/haproxy_config.yml
vars:
is_metal: "{{ properties.is_metal|default(false) }}"
environment: "{{ deployment_environment_variables | default({}) }}"

View File

@ -27,7 +27,7 @@ keepalived_sync_groups:
##if a src_*_script is defined, it will be uploaded from src_*_script
##on the deploy host to the *_script location. Make sure *_script is
##a location in that case.
src_notify_script: vars/configs/keepalived_haproxy_notifications.sh
src_notify_script: "{{ playbook_dir }}/../scripts/keepalived_haproxy_notifications.sh"
keepalived_scripts:
haproxy_check_script:

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
If you had your own keepalived configuration file, please rename and
move it to the openstack-ansible user space, for example by moving
it to ```/etc/openstack_deploy/keepalived/keepalived.yml```.
Our haproxy playbook does not load an external variable files anymore.
The keepalived variable override system has been standardised to the
same method used elsewhere.