Commit Graph

15 Commits

Author SHA1 Message Date
Jonathan Rosser 0985cfa47d Use common service setup tasks from a collection rather than in-role
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/824115
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/821093/7
Change-Id: I09f9fda3699ece3300a666d0c103da4e022d70e2
2022-01-13 11:26:37 +00:00
OpenStack Proposal Bot d5542a5b81 Updated from OpenStack Ansible Tests
Change-Id: I3b6888577d0a32db39e3d795650fd301162535b6
2021-12-04 17:40:15 +00:00
OpenStack Proposal Bot b6794b6e53 Updated from OpenStack Ansible Tests
Change-Id: I00c1b29a34f65c3f401f55b62da1fb88edb098cd
2021-04-19 09:58:26 +00:00
OpenStack Proposal Bot e5dd6bd7c9 Updated from OpenStack Ansible Tests
Change-Id: I716026ab16646b34312bae47476e1424acbbb0b2
2020-10-01 14:30:38 +00:00
OpenStack Proposal Bot 03b0aaf019 Updated from OpenStack Ansible Tests
Change-Id: Ia6feeb3a386026e88b9557ecc9448f11084f2375
2019-06-18 18:15:57 +00:00
OpenStack Proposal Bot 04ac5b4243 Updated from OpenStack Ansible Tests
Change-Id: Ie9a17b13c825d3406e65dcace3ad4806d49fc871
2019-06-11 22:18:08 +00:00
OpenStack Proposal Bot b1a0c84142 Updated from OpenStack Ansible Tests
Change-Id: If3730ed9317ea2a3ec2e07caea6e1e625dad5634
2019-05-09 11:34:48 +00:00
OpenStack Proposal Bot bc54a784ea Updated from OpenStack Ansible Tests
Change-Id: I3e7213966d2f2a41c84c809d6f9331bab56c77d1
2019-04-17 19:11:45 +00:00
OpenStack Proposal Bot 7c21cf238c Updated from OpenStack Ansible Tests
Change-Id: I1398239a3d1a26c9556c74a3c52e2cc897eb5eb5
2019-04-17 07:25:31 +00:00
OpenStack Proposal Bot 6047e1cf50 Updated from OpenStack Ansible Tests
Change-Id: I6315b4c04a35dd6f53ef2683e41f1c35bc90b1ea
2019-04-13 20:22:36 +00:00
OpenStack Proposal Bot c007f1e564 Updated from OpenStack Ansible Tests
Change-Id: I62e9e517abd3510f57811daf7ecab45e7112f6a9
2019-04-01 13:18:55 +00:00
OpenStack Proposal Bot c5b54d43df Updated from OpenStack Ansible Tests
Change-Id: Icfb1403daa10d13f0ec80fd66ddc89bd7a9d5b5a
2018-08-20 10:48:49 +00:00
OpenStack Proposal Bot e10804059e Updated from OpenStack Ansible Tests
Change-Id: I212615ca22af949e0296caaf23f5293d82c54a44
2018-08-15 13:41:08 +00:00
Jesse Pretorius 09ec0890a4 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: I559062788264ed54b0a21b678f420f8d33d2c663
2018-08-07 14:24:27 +01:00
Jesse Pretorius be125ad03b 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:
- keystone_oslomsg_rpc_setup_host
- keystone_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.

Change-Id: I62fb8fc1390402aaee2057833c510a9827fd5292
2018-07-17 22:05:29 +01:00