Remove mention of haproxy-endpoints role

Role was never migrated to usage of haproxy-endpoints role
and included task was used instead the whole time.
With that to reduce complexity and to have unified approach, all mention
of the role and handler are removed from the code.

Change-Id: I0c055393ccb1c8d61affc2c1bb6d01f0c329afe9
This commit is contained in:
Dmitriy Rabotyagov 2022-06-14 19:46:27 +02:00 committed by Dmitriy Rabotyagov
parent 091b2dfa72
commit f3b2abb887
4 changed files with 0 additions and 20 deletions

View File

@ -51,19 +51,6 @@ Example playbook
.. literalinclude:: ../../examples/playbook.yml .. literalinclude:: ../../examples/playbook.yml
:language: yaml :language: yaml
External Restart Hooks
~~~~~~~~~~~~~~~~~~~~~~
When the role performs a restart of the service, it will notify an Ansible
handler named ``Manage LB``, which is a noop within this role. In the
playbook, other roles may be loaded before and after this role which will
implement Ansible handler listeners for ``Manage LB``, allowing external roles
to manage the load balancer endpoints responsible for sending traffic to the
servers being restarted by marking them in maintenance or active mode,
draining sessions, etc. For an example implementation, please reference the
`ansible-haproxy-endpoints role <https://github.com/Logan2211/ansible-haproxy-endpoints>`_
used by the openstack-ansible project.
Tags Tags
~~~~ ~~~~

View File

@ -49,7 +49,3 @@
enabled: yes enabled: yes
state: restarted state: restarted
daemon_reload: "{{ (ansible_facts['service_mgr'] == 'systemd') | ternary('yes', omit) }}" daemon_reload: "{{ (ansible_facts['service_mgr'] == 'systemd') | ternary('yes', omit) }}"
- meta: noop
listen: Manage LB
when: false

View File

@ -54,6 +54,5 @@
register: _copy_rootwraps register: _copy_rootwraps
changed_when: _copy_rootwraps.stdout | length > 0 changed_when: _copy_rootwraps.stdout | length > 0
notify: notify:
- Manage LB
- Restart cinder services - Restart cinder services
- Restart uwsgi services - Restart uwsgi services

View File

@ -32,7 +32,6 @@
config_overrides: "{{ cinder_cinder_conf_overrides }}" config_overrides: "{{ cinder_cinder_conf_overrides }}"
config_type: "ini" config_type: "ini"
notify: notify:
- Manage LB
- Restart cinder services - Restart cinder services
- Restart uwsgi services - Restart uwsgi services
tags: tags:
@ -56,7 +55,6 @@
config_overrides: "{{ cinder_resource_filters_overrides }}" config_overrides: "{{ cinder_resource_filters_overrides }}"
config_type: "json" config_type: "json"
notify: notify:
- Manage LB
- Restart cinder services - Restart cinder services
- Restart uwsgi services - Restart uwsgi services
tags: tags: