Role os_aodh for OpenStack-Ansible
Go to file
Jesse Pretorius 42087a12b0 Move MQ vhost/user creation into role
There is no record for why we implement the MQ vhost/user creation
outside of the role in the playbook, when we could do it inside the
role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement two new variables:
- aodh_oslomsg_rpc_setup_host
- aodh_oslomsg_notify_setup_host

These are used in the role to allow delegation of the MQ vhost/user
setup for each type to any host, but they default to using the first
member of the applicable oslomsg host group.

We also adjust some of the defaults to automatically inherit existing
vars set in group_vars form the integrated build so that we do not
need to do the wiring in the integrated build's group vars. We still
default them in the role too for independent role usage.

Change-Id: I9f0daa3c112cc34393357a30551bac71456089ef
2018-07-17 21:55:57 +01:00
defaults Move MQ vhost/user creation into role 2018-07-17 21:55:57 +01:00
doc Replace port 35357 with 5000 2018-06-24 16:16:06 +00:00
examples Merge "Move database creation into role" 2018-06-28 11:26:45 +00:00
handlers Fix usage of "|" for tests 2018-07-12 16:59:29 +02:00
meta Remove pip_install dependency 2017-12-05 11:54:22 +00:00
releasenotes Update to use oslo.messaging services for RPC and Notify 2018-06-04 14:26:05 -04:00
tasks Move MQ vhost/user creation into role 2018-07-17 21:55:57 +01:00
templates Update to use oslo.messaging services for RPC and Notify 2018-06-04 14:26:05 -04:00
tests Move database creation into role 2018-06-12 19:25:34 +01:00
vars vars: Do not pull devel packages on distro installations 2018-06-04 08:45:14 +01:00
zuul.d Switch to using project-templates 2018-06-22 14:20:31 -04:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:50:01 +00:00
.gitreview Implement base configuration for independent repository 2016-03-02 07:28:08 +00:00
CONTRIBUTING.rst [DOCS] - Removing tags: and category: 2016-08-18 15:45:32 -04:00
LICENSE Seperated out Telemetry Alarming (Aodh) 2015-10-15 11:20:53 +01:00
README.rst Update the project home to https 2018-07-05 21:45:10 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:40:02 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:05:47 +00:00
manual-test.rc Use centralised test scripts 2016-09-27 17:08:44 +00:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:13:12 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-14 09:36:12 +08:00
setup.py Updated from global requirements 2017-03-02 11:51:28 +00:00
tox.ini Use tests repo for common role test requirements 2018-07-02 10:16:18 -04:00

README.rst

Team and repository tags

image

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 Oslo.Messaging
aodh_oslomsg_rpc_transport: rabbit
aodh_oslomsg_rpc_password: "secrete"
aodh_oslomsg_rpc_servers: "10.100.100.2"
aodh_oslomsg_rpc_use_ssl: true
aodh_oslomsg_rpc_port: 5671
aodh_oslomsg_notify_transport: rabbit
aodh_oslomsg_notify_password: "secrete"
aodh_oslomsg_notify_servers: "10.100.100.2"
aodh_oslomsg_notify_use_ssl: true
aodh_oslomsg_notify_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:5000"
keystone_service_adminurl: "{{ keystone_service_adminuri }}/v3"

OpenStack-Ansible Aodh

Ansible role to install OpenStack Aodh.

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-os_aodh/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/openstack-ansible-os_aodh

The project home is at:

https://launchpad.net/openstack-ansible