diff --git a/defaults/main.yml b/defaults/main.yml index 1e64baa..d032db7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -19,6 +19,9 @@ ## Verbosity Options debug: False +# Enable/Disable Ceilometer +tacker_ceilometer_enabled: False + # Set the host which will execute the shade modules # for the service setup. The host must already have # clouds.yaml properly configured. diff --git a/templates/tacker.conf.j2 b/templates/tacker.conf.j2 index 892b367..22f2297 100644 --- a/templates/tacker.conf.j2 +++ b/templates/tacker.conf.j2 @@ -110,4 +110,5 @@ openstack = {{ tacker_etc_dir }}/vim/fernet_keys ssl = {{ tacker_oslomsg_notify_use_ssl | bool }} [oslo_messaging_notifications] +driver = {% if tacker_ceilometer_enabled %}messagingv2{% else %}noop{% endif %} transport_url = {{ tacker_oslomsg_notify_transport }}://{% for host in tacker_oslomsg_notify_servers.split(',') %}{{ tacker_oslomsg_notify_userid }}:{{ tacker_oslomsg_notify_password }}@{{ host }}:{{ tacker_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ tacker_oslomsg_notify_vhost }}{% if (tacker_oslomsg_notify_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}