Role os_glance for OpenStack-Ansible
Go to file
Jesse Pretorius a71d1666d8 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: Iae85f92ae0204cd8ac2be16c71e548b0cb34f554
2018-08-07 13:39:47 +01:00
defaults Merge "Default MQ RPC/Notify credentials/vhosts to match" 2018-07-31 14:48:33 +00:00
doc Updated from global requirements 2018-03-15 07:33:39 +00:00
examples Move database creation into role 2018-05-15 07:45:39 +00:00
handlers Convert role to use a common systemd mount role 2018-07-30 18:39:12 +00:00
meta Execute service setup against a delegated host using Ansible built-in modules 2018-07-06 13:54:34 +00:00
releasenotes Remove glance v1 api and tests 2018-07-30 17:37:23 +01:00
tasks Allow tags to be used for MQ tasks 2018-08-07 13:39:47 +01:00
templates Merge "Convert role to use a common systemd mount role" 2018-07-31 15:13:33 +00:00
tests Merge "Convert role to use a common systemd mount role" 2018-07-31 15:13:33 +00:00
vars Use generic vars file for ubuntu 2018-07-31 09:31:46 +01:00
zuul.d Remove glance v1 api and tests 2018-07-30 17:37:23 +01:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:51:41 +00:00
.gitreview Implement base configuration for independent repository 2016-03-02 07:28:55 +00:00
CONTRIBUTING.rst Update links in CONTRIBUTING.rst 2017-09-19 10:06:38 +08:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Add source code repository notes link to README 2018-07-04 20:47:32 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:41:14 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:06:01 +00:00
manual-test.rc Use centralised test scripts 2016-09-27 18:46:26 +01:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:14:05 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-14 09:37:06 +08:00
setup.py Updated from global requirements 2017-03-02 11:51:41 +00:00
tox.ini Remove glance v1 api and tests 2018-07-30 17:37:23 +01:00

README.rst

Team and repository tags

image

OpenStack-Ansible glance

This Ansible role installs and configures OpenStack glance and the glance registry.

Documentation for the project can be found at:

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

Release notes for the project can be found at:

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

The project source code repository is located at:

https://git.openstack.org/cgit/openstack/openstack-ansible-os_glance/

The project home is at:

https://launchpad.net/openstack-ansible