Adding support for Designate notifications.

- This patch is for initial work on integrating Designate to our integrated gates.
 - Adding nova_designate_enabled option.
 - Adding oslo_messaging_notifications stanza.

Change-Id: I55346e338feb9e4acd376988b664d08c286e1605
This commit is contained in:
Donovan Francesco (drifterza) 2016-11-04 14:03:50 +02:00 committed by Jesse Pretorius (odyssey4me)
parent 59ea9b151a
commit 933b73f18f
2 changed files with 14 additions and 1 deletions

View File

@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Enable/Disable designate configurations
nova_designate_enabled: False
# Notification topics for designate.
nova_notifications_designate: notifications_designate
# Enable/Disable ceilometer configurations
nova_ceilometer_enabled: False

View File

@ -126,8 +126,17 @@ instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
{% endif %}
{% if nova_ceilometer_enabled %}
# Notifications
{% if nova_ceilometer_enabled or nova_designate_enabled %}
[oslo_messaging_notifications]
{% set notification_topics = [] %}
{% if neutron_ceilometer_enabled %}
{% set _ = notification_topics.append('notifications') %}
{% endif %}
{% if neutron_designate_enabled %}
{% set _ = notification_topics.append(nova_notifications_designate) %}
{% endif %}
notification_topics = {{ notification_topics | join(',') }}
driver = messagingv2
transport_url = rabbit://{% for host in nova_rabbitmq_telemetry_servers.split(',') %}{{ nova_rabbitmq_telemetry_userid }}:{{ nova_rabbitmq_telemetry_password }}@{{ host }}:{{ nova_rabbitmq_telemetry_port }}{% if not loop.last %},{% else %}/{{ nova_rabbitmq_telemetry_vhost }}{% endif %}{% endfor %}
{% endif %}