eb495e4d80343fe9a2dca337d6ea8f8013d5f396
Jesse Pretorius
eb495e4d80
Update tox configuration
In order to prepare for implementing requirements management by the OpenStack requirements management process, and to improve the reliability and effectiveness of test execution, this patch implements some changes to the tox configuration: - The minimum tox version is increased in order to be able to use constraints for the python packages. - The OpenStack upper-constraints are used when preparing the test venv for the linters checks. - Any proxy environment variables set on the test host are passed into the venv to enable testing from behind a proxy. - The environment variables used by Ansible tests are moved into a new venv called 'ansible' and this environment is inherited by all Ansible-related tests. - The docs test will clean-up an existing build directory before executing the docs build. - The releasenotes build cannot use upper-constraints at this point, so it doesn't. - The Ansible role download will no longer ignore errors so that any problems discovered will result in a failed test. - The human readable logging callback plugin is implemented for functional testing. - The ansible test requirements are moved into tox.ini to ensure compliance for requirements.txt/test-requirements.txt for the global-requirements management contract. - The ~/.ansible directory as a whole is not deleted. Instead only the plugins and roles folders are deleted to ensure that zuul's Ansible artifacts are left in-place. - The ansible-lint version is updated to support execution against a folder, and the test now executes against the entire role to ensure that it captures all applicable files for lint testing. This is a combined port of the following: - https://review.openstack.org/323507 - https://review.openstack.org/338193 - https://review.openstack.org/332443 - https://review.openstack.org/338193 - https://review.openstack.org/339493 Change-Id: Ie08d1c8c82220e496bfa6d8b6743b5b3318c72ed
OpenStack-Ansible RabbitMQ Server
This Ansible role deploys RabbitMQ. When multiple hosts are present in the rabbitmq_all inventory group a cluster will be created.
Default Variables
../../defaults/main.yml
Required Variables
# RabbitMQ cluster shared secret
rabbitmq_cookie_token: secreteExample Playbook
-name: Install rabbitmq server
hosts: rabbitmq_all
user: root
roles:
-{role:"rabbitmq_server",tags:["rabbitmq-server"]}
vars:
rabbitmq_cookie_token: secreteDescription
Languages
Python
69.3%
Jinja
30.1%
Shell
0.6%