Role os_zun for OpenStack-Ansible
Go to file
Jesse Pretorius 7908f60662 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: If671a68bd26842dafb55996cdcb47bbb58e4a130
2018-08-07 15:22:42 +01:00
defaults Move MQ vhost/user creation into role 2018-07-27 12:42:19 +01:00
doc first commit 2018-06-05 15:36:33 -05:00
examples first commit 2018-06-05 15:36:33 -05:00
handlers Fix usage of "|" for tests 2018-07-12 16:54:54 +02:00
meta Add bionic to galaxy_info metadata 2018-08-02 16:10:06 +01:00
releasenotes first commit 2018-06-05 15:36:33 -05:00
tasks Allow tags to be used for MQ tasks 2018-08-07 15:22:42 +01:00
templates Update to use oslo.messaging service for RPC and Notify 2018-07-26 09:31:02 +00:00
tests Move MQ vhost/user creation into role 2018-07-27 12:42:19 +01:00
vars Use generic vars file for ubuntu 2018-08-01 11:39:20 +01:00
zuul.d Switch to using project-templates 2018-08-06 14:34:06 +01:00
.gitignore first commit 2018-06-05 15:36:33 -05:00
.gitreview first commit 2018-06-05 15:36:33 -05:00
CONTRIBUTING.rst first commit 2018-06-05 15:36:33 -05:00
LICENSE first commit 2018-06-05 15:36:33 -05:00
README.rst Add the project source code repository in README 2018-07-21 00:35:01 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-09 00:02:28 +00:00
bindep.txt first commit 2018-06-05 15:36:33 -05:00
manual-test.rc first commit 2018-06-05 15:36:33 -05:00
run_tests.sh first commit 2018-06-05 15:36:33 -05:00
setup.cfg first commit 2018-06-05 15:36:33 -05:00
setup.py first commit 2018-06-05 15:36:33 -05:00
tox.ini Use tests repo for common role test requirements 2018-07-02 15:51:51 +00:00

README.rst

Team and repository tags

image

OpenStack-Ansible zun

Ansible role that installs and configures OpenStack zun and all of its corresponding services.

This role will install the following:
  • zun-api
  • zun-compute

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

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

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

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