DEPRECATED, Role os_congress for OpenStack-Ansible
Go to file
Jesse Pretorius 3ed6c24eeb 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: If42433a564afd84a5f2d300d05fbdd6605ea4d3d
2018-08-07 12:57:53 +01:00
defaults Merge "Convert role to use a common systemd service role" 2018-08-01 02:42:53 +00:00
doc Follow the new PTI for document build 2018-03-12 12:09:48 +08:00
handlers Convert role to use a common systemd service role 2018-07-31 14:42:30 -05:00
meta Execute service setup against a delegated host using Ansible built-in modules 2018-07-06 13:49:37 +00:00
releasenotes Convert role to use a common systemd service role 2018-07-31 14:42:30 -05:00
tasks Allow tags to be used for MQ tasks 2018-08-07 12:57:53 +01:00
templates Convert role to use a common systemd service role 2018-07-31 14:42:30 -05:00
tests Move MQ vhost/user creation into role 2018-07-27 11:44:38 +00:00
vars Convert role to use a common systemd service role 2018-07-31 14:42:30 -05:00
zuul.d Modify zuul jobs 2017-10-31 11:42:21 +05:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:51:12 +00:00
.gitreview Introduce os_congress role in gerrit 2018-02-14 10:17:23 +05:00
README.rst Add source code repository notes link to README 2018-06-30 05:17:25 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:40:56 +00:00
bindep.txt Introduce os_congress role in gerrit 2018-02-14 10:17:23 +05:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:13:50 +00:00
setup.cfg Filling out all requirements 2017-09-14 14:31:59 +05:00
setup.py Introduce os_congress role in gerrit 2018-02-14 10:17:23 +05:00
tox.ini Use tests repo for common role test requirements 2018-07-02 12:42:12 -04:00

README.rst

OpenStack-Ansible Congress

Ansible role that will install and configure Congress, a policy framework for OpenStack.

Documentation for the project can be found at: https://docs.openstack.org/openstack-ansible-os_congress/latest/

Release notes for the project can be found at: https://docs.openstack.org/releasenotes/openstack-ansible-os_congress/

The project source code repository is located at: https://git.openstack.org/cgit/openstack/openstack-ansible-os_congress/

The project home is at: http://launchpad.net/openstack-ansible