Role os_aodh for OpenStack-Ansible
Go to file
Travis Truman dd4a64226e Serve the aodh-api using mod_wsgi
aodh upstream change Iefd6f4d9f76c69ed9b49483e1feda0b7dbe2cb81
moves from Werkzeug to WSGI so we should follow suit

Without this change, the aodh-api service fails to start at all.

Apache vhost config based on https://github.com/openstack/aodh/blob/master/etc/apache2/aodh

Change-Id: I2fb1eb984949a4457ae313cffec872a0bb425eab
2016-07-19 09:16:44 -04:00
defaults Serve the aodh-api using mod_wsgi 2016-07-19 09:16:44 -04:00
doc Serve the aodh-api using mod_wsgi 2016-07-19 09:16:44 -04:00
handlers Serve the aodh-api using mod_wsgi 2016-07-19 09:16:44 -04:00
meta Implement Ubuntu 16.04 support with SystemD 2016-06-18 12:18:03 +00:00
releasenotes Update sphinx configuration 2016-07-12 16:51:47 +01:00
tasks Serve the aodh-api using mod_wsgi 2016-07-19 09:16:44 -04:00
templates Serve the aodh-api using mod_wsgi 2016-07-19 09:16:44 -04:00
tests Remove mongodb vars from the aodh func tests 2016-06-27 09:13:13 -04:00
vars Implement Ubuntu 16.04 support with SystemD 2016-06-18 12:18:03 +00:00
.gitignore Remove duplicates from .gitignore 2016-07-15 11:43:36 +10:00
.gitreview Implement base configuration for independent repository 2016-03-02 07:28:08 +00:00
CONTRIBUTING.rst Seperated out Telemetry Alarming (Aodh) 2015-10-15 11:20:53 +01:00
LICENSE Seperated out Telemetry Alarming (Aodh) 2015-10-15 11:20:53 +01:00
README.rst Cleanup/standardize usage of tags 2016-07-11 08:50:19 -04:00
Vagrantfile Adding Vagrantfile for local developer testing 2016-03-16 22:19:59 -04:00
other-requirements.txt Add dependencies for paramiko 2.0 2016-05-03 08:55:06 +01:00
run_tests.sh Add dependencies for paramiko 2.0 2016-05-03 08:55:06 +01:00
setup.cfg Implement base configuration for independent repository 2016-03-02 07:28:08 +00:00
setup.py Updated from global requirements 2016-07-15 03:57:37 +00:00
test-requirements.txt Updated from global requirements 2016-07-15 03:57:37 +00:00
tox.ini Use plugins repo version of the human_log callback plugin 2016-07-15 14:01:20 +01:00

README.rst

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.