From fcb0f2c9641fe1f373b24fc1fb425d34fa1ea8d6 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Tue, 15 Apr 2014 17:07:53 -0400 Subject: [PATCH] add support for neutron/nova notifications This adds options to configure the Neutron -> Nova notifications of port status and data changes. Requires a recent puppet-neutron module with neutron::server::notifications manifest (e.g., https://review.openstack.org/#/c/88410/) Change-Id: I26684a8fe5df79db6b68a5bd733619517376660c Closes-bug: 1306337 --- packstack/plugins/neutron_350.py | 2 ++ packstack/puppet/templates/neutron_notifications.pp | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 packstack/puppet/templates/neutron_notifications.pp diff --git a/packstack/plugins/neutron_350.py b/packstack/plugins/neutron_350.py index a89acd0c8..76c1d7a5f 100644 --- a/packstack/plugins/neutron_350.py +++ b/packstack/plugins/neutron_350.py @@ -673,6 +673,8 @@ def create_manifests(config): if host in api_hosts: manifest_file = "%s_neutron.pp" % (host,) manifest_data = getManifestTemplate("neutron_api.pp") + manifest_data += getManifestTemplate("neutron_notifications.pp") + # Firewall Rules for f_host in allowed_hosts: config['FIREWALL_ALLOWED'] = "'%s'" % f_host diff --git a/packstack/puppet/templates/neutron_notifications.pp b/packstack/puppet/templates/neutron_notifications.pp new file mode 100644 index 000000000..ebca9b432 --- /dev/null +++ b/packstack/puppet/templates/neutron_notifications.pp @@ -0,0 +1,9 @@ +# Configure nova notifications system +class { 'neutron::server::notifications': + nova_admin_username => 'nova', + nova_admin_password => '%(CONFIG_NOVA_KS_PW)s', + nova_admin_tenant_name => 'services', + nova_url => 'http://%(CONFIG_NOVA_API_HOST)s:8774/v2', + nova_admin_auth_url => 'http://%(CONFIG_KEYSTONE_HOST)s:35357/v2.0', +} +