Commit Graph

15 Commits

Author SHA1 Message Date
Jonathan Rosser 94a6ea79b0 Use common service setup tasks from a collection rather than in-role
Change-Id: I3f49bc1ad684755a9e591e3bf079493415a908c1
2022-01-12 17:47:13 +00:00
OpenStack Proposal Bot 1c8c8c38fe Updated from OpenStack Ansible Tests
Change-Id: Ib355676808ac8532841b78cb512f01f9549ab620
2021-12-04 17:41:41 +00:00
OpenStack Proposal Bot c0a42a77bb Updated from OpenStack Ansible Tests
Change-Id: I2834d0c7fef564fbf0d364b1504758c2248913ff
2021-04-19 10:00:11 +00:00
OpenStack Proposal Bot c7ddb916cd Updated from OpenStack Ansible Tests
Change-Id: I4d885cd1f643c303efff2e7ac49cc06f10a497c7
2020-10-01 14:32:15 +00:00
OpenStack Proposal Bot 959ad67726 Updated from OpenStack Ansible Tests
Change-Id: Ie3f0787d0d5b2439c6a170bfd5379ec8c709ba8b
2019-06-18 18:16:43 +00:00
OpenStack Proposal Bot 50b5f4e26b Updated from OpenStack Ansible Tests
Change-Id: I5555050888e8a17e8af6f740763e463176d81826
2019-06-11 22:19:29 +00:00
OpenStack Proposal Bot 87dcfdf757 Updated from OpenStack Ansible Tests
Change-Id: I58c643dfd579cb926688e7afcecb74fa1f51aa0a
2019-05-09 11:35:35 +00:00
OpenStack Proposal Bot 489d60fa4e Updated from OpenStack Ansible Tests
Change-Id: I6da8de4174f9bd2f3e9034bf523355ec362ba361
2019-04-17 19:12:20 +00:00
OpenStack Proposal Bot 14bfed0634 Updated from OpenStack Ansible Tests
Change-Id: I84b882b042bc4d6471857405d776d372061d8666
2019-04-17 07:26:03 +00:00
OpenStack Proposal Bot 13a26057c4 Updated from OpenStack Ansible Tests
Change-Id: Ied2ef76e469c4735dc54de1cc229816913a26e0f
2019-04-13 20:23:49 +00:00
OpenStack Proposal Bot c07efd4092 Updated from OpenStack Ansible Tests
Change-Id: I7fb8249c0172d9d5010ebaeff4c1d2835236218b
2019-04-01 13:19:28 +00:00
OpenStack Proposal Bot 0cbe64b9d9 Updated from OpenStack Ansible Tests
Change-Id: I553e9cc68764ac6a1447081fcfda6db9c53e497f
2018-08-20 10:50:29 +00:00
OpenStack Proposal Bot 9f354d483d Updated from OpenStack Ansible Tests
Change-Id: I1e6399b5a9bf928536f55774ea72e7e35ef18b2f
2018-08-15 13:42:12 +00:00
Jesse Pretorius fc28e0c579 Allow tags to be used for MQ tasks
The use of 'include_tasks' and a loop of variables creates
a situation where a user is unable to use tags to scope the
inclusion of only the MQ tasks when running the playbooks.

The use-case this is important for is when the rabbitmq
containers are destroyed and rebuilt in order to resolve
an issue with them, and the user wishes to quickly recreate
all the vhosts/users.

Ansible's 'include_tasks' is a dynamic inclusion, and dynamic
inclusions are not included when using tags. The nice thing
about dynamic inclusions is that they completely skip all
tasks when the condition does not apply, cutting down deploy
time. However, given the use-case, we should rather take on
the extra deployment time.

This patch changes the dynamic inclusion to a static one,
adds a 'common-mq' tag to cover all MQ implementations,
and re-implements the 'common-rabbitmq' tag for the tasks
that relate to RabbitMQ specifically.

It also implements conditionals for each task set so that
the rpc/notify tasks can be skipped if a vhost/user is not
required for that purpose (eg: swift does not use RPC, and
most roles will not use notifications by default).

Depends-On: https://review.openstack.org/588191
Change-Id: I336d5520875dca8c5aac9455f3a22e903123d3a9
2018-08-07 15:04:16 +01:00
Jesse Pretorius 59e61f1390 Move MQ vhost/user creation into role
There is no record for why we implement the MQ vhost/user creation
outside of the role in the playbook, when we could do it inside the
role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement two new variables:
- tacker_oslomsg_rpc_setup_host
- tacker_oslomsg_notify_setup_host

These are used in the role to allow delegation of the MQ vhost/user
setup for each type to any host, but they default to using the first
member of the applicable oslomsg host group.

We also adjust some of the defaults to automatically inherit existing
vars set in group_vars form the integrated build so that we do not
need to do the wiring in the integrated build's group vars. We still
default them in the role too for independent role usage.

Finally, we remove the test mq setup tasks and clean up any unused
or unnecessary variables configured in tests.

Change-Id: I481b2358bf3b93fba3057b825fc9e0f626d616ba
2018-07-27 11:21:35 +00:00