Added notification options for keystone

So keystone will emit notifications to the
messaging queue in a way supported by ceilometer

Change-Id: Ibf6bbd50d58e67b0bf5abbfb1b111a9ed92a18ac
Closes-Bug: #1523932
This commit is contained in:
Miguel Alex Cantu 2015-12-14 19:41:15 +00:00 committed by Jesse Pretorius (odyssey4me)
parent e28d2dcadd
commit 089e4f973f
7 changed files with 19 additions and 2 deletions

View File

@ -181,6 +181,9 @@ This configures nova to send notifications to the message bus:
This configures neutron to send notifications to the message bus:
``neutron_ceilometer_enabled: False``
This configures keystone to send notifications to the message bus:
``keystone_ceilometer_enabled: False``
Once all of these steps are complete, you are ready to run the
os-ceilometer-install.yml playbook! Or, if deploying a new stack, simply run
setup-openstack.yml. The ceilometer playbooks will run as part of this playbook

View File

@ -24,6 +24,7 @@ cinder_ceilometer_enabled: False
glance_ceilometer_enabled: False
nova_ceilometer_enabled: False
neutron_ceilometer_enabled: False
keystone_ceilometer_enabled: False
## Aodh Options
aodh_db_type: mongodb

View File

@ -95,6 +95,7 @@ nova_ceilometer_enabled: false
cinder_ceilometer_enabled: false
neutron_ceilometer_enabled: false
heat_ceilometer_enabled: false
keystone_ceilometer_enabled: false
## Keystone authentication middleware
ceilometer_keystone_auth_plugin: password

View File

@ -66,7 +66,12 @@ messaging_urls = rabbit://{{ neutron_rabbitmq_userid }}:{{ neutron_rabbitmq_pass
messaging_urls = rabbit://{{ heat_rabbitmq_userid }}:{{ heat_rabbitmq_password }}@{{ hostvars[host]['ansible_ssh_host'] }}:{{ rabbitmq_port }}/{{ heat_rabbitmq_vhost }}
{% endfor %}
{% endif %}
# TODO: Keystone
{% if keystone_ceilometer_enabled %}
# Keystone
{% for host in groups['rabbitmq_all'] %}
messaging_urls = rabbit://{{ keystone_rabbitmq_userid }}:{{ keystone_rabbitmq_password }}@{{ hostvars[host]['ansible_ssh_host'] }}:{{ rabbitmq_port }}/{{ keystone_rabbitmq_vhost }}
{% endfor %}
{% endif %}
# TODO: Swift
[database]

View File

@ -330,6 +330,9 @@ keystone_service_in_ldap: false
keystone_sp_apt_packages:
- libapache2-mod-shib2
# Keystone notification settings
keystone_ceilometer_enabled: false
# Common apt packages
keystone_apt_packages:
- apache2

View File

@ -19,6 +19,10 @@ log_file = keystone.log
log_dir = /var/log/keystone
rpc_backend = {{ keystone_rpc_backend }}
{% if keystone_ceilometer_enabled %}
notification_driver = messagingv2
{% endif %}
{% if 'memcache' in keystone_token_driver and 'fernet' not in keystone_token_provider %}
[memcache]
servers = {{ keystone_memcached_servers }}
@ -159,4 +163,3 @@ trusted_dashboard = {{ item }}
{% endfor %}
{% endif %}
{% endif %}

View File

@ -26,6 +26,7 @@ heat_ceilometer_enabled: True
neutron_ceilometer_enabled: True
nova_ceilometer_enabled: True
swift_ceilometer_enabled: True
keystone_ceilometer_enabled: True
## Aodh Options
aodh_db_type: mongodb