Role os_ceilometer for OpenStack-Ansible
Go to file
Jesse Pretorius ad18f381bf 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: Id77c1f647c6779ca8b91b12bb56b8ebe80db69c9
2018-08-07 12:53:30 +01:00
defaults Add systemd journal logging to the service config 2018-07-31 12:58:57 -05:00
doc Remove database configuration 2018-06-12 20:29:03 +01:00
examples Rename package lists (and related vars) appropriately 2016-08-30 16:41:49 +01:00
files/rootwrap.d Update Master SHAs - 17 Jan 2016 2016-01-18 23:58:48 +00:00
handlers Fix usage of "|" for tests 2018-07-12 17:00:28 +02:00
meta Add bionic to galaxy_info metadata 2018-08-02 14:56:22 +01:00
releasenotes Add systemd journal logging to the service config 2018-07-31 12:58:57 -05:00
tasks Allow tags to be used for MQ tasks 2018-08-07 12:53:30 +01:00
templates Add systemd journal logging to the service config 2018-07-31 12:58:57 -05:00
tests Remove unnecessary MQ vhost/user creation tasks/vars 2018-07-30 11:54:19 +00:00
vars Add systemd journal logging to the service config 2018-07-31 12:58:57 -05:00
zuul.d Switch to using project-templates 2018-06-29 06:55:09 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:50:29 +00:00
.gitreview Implement base configuration for independent repository 2016-03-01 09:43:48 -08:00
CONTRIBUTING.rst Replace invalid references to Glance 2015-10-30 07:28:53 +09:00
LICENSE Implement Ceilometer 2015-07-07 19:31:04 +00:00
README.rst Optimize the link address in docs 2018-07-03 13:59:47 +08:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:40:29 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2018-02-07 19:34:08 +00:00
manual-test.rc Ansible 2.1.1 role testing 2016-09-21 12:11:42 -04:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:13:28 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-17 10:31:06 +00:00
setup.py Updated from global requirements 2017-03-02 11:51:32 +00:00
tox.ini Use tests repo for common role test requirements 2018-07-02 10:25:05 -04:00

README.rst

Team and repository tags

image

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:

https://launchpad.net/openstack-ansible