Commit Graph

14 Commits

Author SHA1 Message Date
Jonathan Rosser 2604f534a8 Use common service setup tasks from a collection rather than in-role
Change-Id: Ie906228e6613d8453835ae8c52c3c4dce1adfae2
2022-01-12 17:53:51 +00:00
OpenStack Proposal Bot 927f7cbb83 Updated from OpenStack Ansible Tests
Change-Id: I47eccbac8b9d88cc0f0c36b489914b0b2fb709d6
2021-12-04 17:40:19 +00:00
OpenStack Proposal Bot 97e83a07ca Updated from OpenStack Ansible Tests
Change-Id: I4574b83e344c6b1da735cda07ecbde617152be3c
2021-04-19 09:58:31 +00:00
OpenStack Proposal Bot af54ecc08b Updated from OpenStack Ansible Tests
Change-Id: Ice4664143eed522048a3b1daeb12717a17deeb67
2020-11-29 22:05:25 +00:00
OpenStack Proposal Bot 72f453e729 Updated from OpenStack Ansible Tests
Change-Id: Iea4fdd508e0f67851e6326f519c8af64d45c8ae4
2019-06-18 18:16:01 +00:00
OpenStack Proposal Bot 4b911f22df Updated from OpenStack Ansible Tests
Change-Id: I54b6db85ec5146949e78e90427f808450068b661
2019-05-09 11:34:51 +00:00
OpenStack Proposal Bot 61b2a9741e Updated from OpenStack Ansible Tests
Change-Id: I0b718e3f0418e209ff8556f4665e71df5901ab62
2019-04-17 19:11:47 +00:00
OpenStack Proposal Bot c555384700 Updated from OpenStack Ansible Tests
Change-Id: I378610af17d3c389f0a204f770cbbaedab161492
2019-04-17 07:25:34 +00:00
OpenStack Proposal Bot a6e8832d3e Updated from OpenStack Ansible Tests
Change-Id: I7fea462e36ac459f46c36360f7832648d2de2513
2019-04-13 20:22:41 +00:00
OpenStack Proposal Bot 1d0c55400c Updated from OpenStack Ansible Tests
Change-Id: I077152c40c4466906258b1e44f1ca8a331834e63
2019-04-01 13:18:57 +00:00
OpenStack Proposal Bot 381a4438df Updated from OpenStack Ansible Tests
Change-Id: I1c9e92085bad6d0cc04ee39d87296399e5e273f5
2018-08-20 10:48:57 +00:00
OpenStack Proposal Bot 481e5c26f9 Updated from OpenStack Ansible Tests
Change-Id: Ia66f9af4a8973831d4fc32e41be06f7d53268827
2018-08-15 13:41:14 +00:00
Jesse Pretorius d208e8fe46 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: I4c9d86ffea74517a7ad50479e934bddf6c7f0e2d
2018-08-07 14:33:30 +01:00
Jesse Pretorius 5eae47074a 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:
- magnum_oslomsg_rpc_setup_host
- magnum_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.

Depends-On: https://review.openstack.org/583430
Change-Id: I70c2a340d617bdc603d983fecf4d064975aef780
2018-07-20 11:53:11 +00:00