ad18f381bf
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: Id77c1f647c6779ca8b91b12bb56b8ebe80db69c9 |
||
---|---|---|
defaults | ||
doc | ||
examples | ||
files/rootwrap.d | ||
handlers | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
zuul.d | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
README.rst | ||
Vagrantfile | ||
bindep.txt | ||
manual-test.rc | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
tox.ini |
README.rst
Team and repository tags
OpenStack Ceilometer
Ansible Role that installs and configures OpenStack Ceilometer.
- This role will install the following:
-
- ceilometer-api
- ceilometer-agent-notification
- ceilometer-polling
- ceilometer-registry
The role will configure Ceilometer to use MongoDB for data storage, but does not install or configure MongoDB.
Default Variables
../../defaults/main.yml
Example Playbook
- name: Install ceilometer service
hosts: ceilometer_all
user: root
roles:
- { role: "os_ceilometer", tags: [ "os-ceilometer" ] }
vars:
external_lb_vip_address: 172.16.24.1
internal_lb_vip_address: 192.168.0.1
Tags
This role supports two tags: ceilometer-install
and
ceilometer-config
.
The ceilometer-install
tag can be used to install and
upgrade.
The ceilometer-config
tag can be used to maintain
configuration of the service.
- Documentation for the project can be found at:
-
https://docs.openstack.org/openstack-ansible-os_ceilometer/latest/
- Release notes for the project can be found at:
-
https://docs.openstack.org/releasenotes/openstack-ansible-os_ceilometer/
- The project home is at: