From 613e645a203769119162dc26cccc153c9f013a4d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 14 Jun 2022 19:50:39 +0200 Subject: [PATCH] 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: I01225e479e22f3867e811055c8e5e87f644bf46e --- doc/source/index.rst | 12 ------------ handlers/main.yml | 4 ---- tasks/glance_post_install.yml | 2 -- 3 files changed, 18 deletions(-) diff --git a/doc/source/index.rst b/doc/source/index.rst index dce85a68..59a371b3 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -32,18 +32,6 @@ Example playbook .. literalinclude:: ../../examples/playbook.yml :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 `_ -used by the openstack-ansible project. Tags ~~~~ diff --git a/handlers/main.yml b/handlers/main.yml index 300e96f8..85085d22 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -42,7 +42,3 @@ listen: - "Restart glance services" - "venv changed" - -- meta: noop - listen: Manage LB - when: false diff --git a/tasks/glance_post_install.yml b/tasks/glance_post_install.yml index 7b0efbc6..05350752 100644 --- a/tasks/glance_post_install.yml +++ b/tasks/glance_post_install.yml @@ -76,7 +76,6 @@ config_overrides: "{{ glance_glance_scheme_json_overrides }}" config_type: "json" notify: - - Manage LB - Restart glance services - Restart uwsgi services @@ -110,7 +109,6 @@ dest: "{{ glance_etc_dir }}/glance-image-import.conf" when: glance_glance_image_import_conf_location is defined notify: - - Manage LB - Restart glance services - Restart uwsgi services