Role os_magnum for OpenStack-Ansible
Go to file
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
defaults Merge "Add packages required for osprofiler" 2018-07-31 17:02:23 +00:00
doc Update to use oslo.messaging service for RPC and Notify 2018-07-20 11:53:00 +00:00
examples Remove unnecessary MQ vhost/user creation tasks/vars 2018-07-30 12:02:24 +00:00
files Add files/ directory 2016-01-08 16:34:22 -06:00
handlers Refactor services to magnum_services 2018-02-18 12:58:54 -05:00
library Add config_template library from OSA 2016-01-05 13:09:23 -06:00
meta Remove pip_install dependency 2017-12-05 11:55:22 +00:00
releasenotes Update to use oslo.messaging service for RPC and Notify 2018-07-20 11:53:00 +00:00
tasks Allow tags to be used for MQ tasks 2018-08-07 14:33:30 +01:00
templates Merge "Disable sending metrics for clusters" 2018-07-31 19:04:16 +00:00
tests Remove unnecessary MQ vhost/user creation tasks/vars 2018-07-30 12:02:24 +00:00
vars Refactor services to magnum_services 2018-02-18 12:58:54 -05:00
zuul.d Switch non-voting jobs to use Zuul stanza 2018-06-20 20:40:25 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:53:20 +00:00
.gitreview Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
CONTRIBUTING.rst Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
LICENSE Make license plain-text 2016-01-05 10:59:58 -06:00
README.rst Add release notes link to README 2018-06-15 00:47:41 -07:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:42:16 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:06:16 +00:00
manual-test.rc Add basic functional tests to role 2016-10-04 15:18:12 -07:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:15:00 +00:00
setup.cfg Update the home-page link 2018-06-22 23:41:41 -04:00
setup.py Updated from global requirements 2017-03-02 11:51:54 +00:00
tox.ini Use tests repo for common role test requirements 2018-07-01 17:05:48 +01:00

README.rst

Team and repository tags

image

OpenStack-Ansible Magnum

Ansible role that installs and configures OpenStack Magnum.

Documentation for this project can be found at:

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

Release notes for the project can be found at:

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

The project home is at:

https://launchpad.net/openstack-ansible