openstack-ansible-os_aodh/README.rst
Travis Truman 53a0426f38 Cleanup/standardize usage of tags
The numerous tags within the role have been condensed
to two tags: aodh-install and aodh-config

These tags have been chosen as they are namespaced
and cover the two major functions of the role.

Documentation has been updated to inform how each tag
influences the function of the role.

Change-Id: I0547471069287310fe7370a574375a5f4d7e73d7
2016-07-11 08:50:19 -04:00

3.0 KiB

OpenStack Aodh

Ansible role that installs and configures OpenStack Aodh as the alarm functionality of Telemetry.

This role will install the following:
  • aodh-api
  • aodh-listener
  • aodh-evaluator
  • aodh-notifier

The role will configure Aodh to use MongoDB for data storage, but does not install or configure MongoDB.

Default Variables

../../defaults/main.yml

Required Variables

To use this role, define the following variables:

# Needed for aodh to talk to MongoDB
aodh_container_db_password: "secrete"
# Password used for Keystone aodh service user
aodh_service_password: "secrete"
# Needed for aodh to talk to memcached
memcached_servers: 127.0.0.1
memcached_encryption_key: "some_key"
# Needed for aodh to locate and connect to the RabbitMQ cluster
aodh_rabbitmq_password: "secrete"
rabbitmq_servers: "10.100.100.2"
rabbitmq_use_ssl: true
rabbitmq_port: 5671
# Needed to setup the aodh service in Keystone
keystone_admin_user_name: admin
keystone_admin_tenant_name: admin
keystone_auth_admin_password: "SuperSecretePassword"
keystone_service_adminuri_insecure: false
keystone_service_internaluri_insecure: false
keystone_service_internaluri: "http://1.2.3.4:5000"
keystone_service_internalurl: "{{ keystone_service_internaluri }}/v3"
keystone_service_adminuri: "http://5.6.7.8:35357"
keystone_service_adminurl: "{{ keystone_service_adminuri }}/v3"

Example Playbook

- name: Install aodh services
  hosts: aodh_all
  user: root
  roles:
    - { role: "os_aodh" }
  vars:
    # Needed for aodh to talk to MongoDB
    aodh_container_db_password: "secrete"
    # Password used for Keystone aodh service user
    aodh_service_password: "secrete"
    # Needed for aodh to talk to memcached
    memcached_servers: 127.0.0.1
    memcached_encryption_key: "some_key"
    # Needed for aodh to locate and connect to the RabbitMQ cluster
    aodh_rabbitmq_password: "secrete"
    rabbitmq_servers: "10.100.100.2"
    rabbitmq_use_ssl: true
    rabbitmq_port: 5671
    # Needed to setup the aodh service in Keystone
    keystone_admin_user_name: admin
    keystone_admin_tenant_name: admin
    keystone_auth_admin_password: "SuperSecretePassword"
    keystone_service_adminuri_insecure: false
    keystone_service_internaluri_insecure: false
    keystone_service_internaluri: "http://1.2.3.4:5000"
    keystone_service_internalurl: "{{ keystone_service_internaluri }}/v3"
    keystone_service_adminuri: "http://5.6.7.8:35357"
    keystone_service_adminurl: "{{ keystone_service_adminuri }}/v3"

Tags

This role supports two tags: aodh-install and aodh-config

The aodh-install tag can be used to install and upgrade.

The aodh-config tag can be used to maintain configuration of the aodh components.