Role os_trove for OpenStack-Ansible
5333f1a759
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: I320ae83839869ee89fa5db3bf5c55d245f3b17db |
||
---|---|---|
defaults | ||
doc | ||
examples | ||
handlers | ||
library | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
zuul.d | ||
.gitignore | ||
.gitreview | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
LICENSE | ||
manual-test.rc | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
tox.ini | ||
Vagrantfile |
Team and repository tags
OpenStack-Ansible Trove (DBaaS)
Ansible role that installs and configures OpenStack Trove. Trove is installed behind the Apache webserver listening on port 8779 by default.
Required Variables
This list is not exhaustive at present. See role internals for further details.
# trove TCP listening port
trove_service_port: 8779
Example Playbook
- name: Install trove service
hosts: trove_all
user: root
roles:
- { role: "os_trove", tags: [ "os-trove" ] }
vars:
is_metal: "{{ properties.is_metal|default(false) }}"
OpenStack-Ansible Trove
Ansible role that installs and configures OpenStack Trove.
Documentation for the project can be found at: https://docs.openstack.org/openstack-ansible-os_trove/latest/
Release notes for the project can be found at: https://docs.openstack.org/releasenotes/openstack-ansible-os_trove/
The project source code repository is located at: https://git.openstack.org/cgit/openstack/openstack-ansible-os_trove
The project home is at: https://launchpad.net/openstack-ansible