Role os_sahara for OpenStack-Ansible
Go to file
Jesse Pretorius a9455eb451 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: I077a267824b6142874d052d10227ea055abd6069
2018-08-07 15:01:40 +01:00
defaults Default MQ RPC/Notify credentials/vhosts to match 2018-07-30 12:56:40 +01:00
doc Updated from global requirements 2018-03-15 07:38:01 +00:00
examples Move database creation into role 2018-06-01 19:03:47 +01:00
files/rootwrap.d Update paste, policy and rootwrap configurations 2016-09-08 2016-09-09 12:37:42 +01:00
handlers Role cleanup/update for ocata 2017-02-14 09:35:30 -03:00
meta Add bionic to galaxy_info metadata 2018-08-02 15:05:15 +01:00
releasenotes Execute service setup against a delegated host using Ansible built-in modules 2018-07-12 19:27:08 +01:00
tasks Allow tags to be used for MQ tasks 2018-08-07 15:01:40 +01:00
templates Add trustee section by default 2018-06-12 11:29:16 -05:00
tests Execute service setup against a delegated host using Ansible built-in modules 2018-07-12 19:27:08 +01:00
vars Use generic vars file for ubuntu 2018-07-31 10:15:28 +01:00
zuul.d Switch to using project-templates 2018-07-02 23:25:08 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:55:42 +00:00
.gitreview Test sahara with tempest 2016-06-08 08:32:43 -03:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:06:35 +00:00
CONTRIBUTING.rst Update url links in files of openstack-ansible-os_sahara 2018-01-23 09:00:49 +00:00
LICENSE Initial import 2016-05-12 10:28:58 -03:00
manual-test.rc Ansible 2.1.1 role testing 2016-10-03 14:12:51 +01:00
README.rst Add release notes link to README 2018-06-12 00:10:53 -07:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:16:10 +00:00
setup.cfg Update URLs in documents according to document migration 2017-08-07 21:56:32 +00:00
setup.py Updated from global requirements 2017-03-02 11:52:04 +00:00
tox.ini Merge "fix tox python3 overrides" 2018-07-11 20:27:21 +00:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:43:46 +00:00

Team and repository tags

image

OpenStack-Ansible sahara

This Ansible role installs and configures OpenStack sahara.

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-os_sahara/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/openstack-ansible-os_sahara/

The project home is at:

https://launchpad.net/openstack-ansible