From 48c0a899ecd2c783017b296d067e4fcc11232d4b Mon Sep 17 00:00:00 2001 From: Craig Tracey Date: Wed, 19 Jun 2013 18:19:32 -0400 Subject: [PATCH] Add common messaging attributes Similar to the way in which we handle database attributes, provide a mechanism that allows for centralized messaging configuration. Right now this supports rabbit, but there is no reason other message queues could not be added in the default['openstack']['mq'] namespace. Change-Id: Id9d34fa7c256920dd575eee57c7b3820dacf8068 --- CHANGELOG.md | 1 + attributes/default.rb | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28ae7137..666f7b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ This file is used to list changes made in each version of cookbook-openstack-com * Added `#address_for` method, which returns the IPv4 (default) address of the given interface. * Added global mysql setting of port and db type, for use with wrapper cookbooks. +* Add default messaging attributes, for use with wrapper cookbooks. ## 0.2.6: * Update Chef dependency to Chef 11. diff --git a/attributes/default.rb b/attributes/default.rb index 849fc95a..5d43b142 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -309,5 +309,11 @@ default['openstack']['db']['root_user_key'] = 'mysqlroot' default['openstack']['logging']['ignore'] = {'nova.api.openstack.wsgi' => 'WARNING', 'nova.osapi_compute.wsgi.server' => 'WARNING'} -# override search for memcached_servers by setting this attribute default['openstack']['memcached_servers'] = nil + +# Default database attributes +default["openstack"]["mq"]["server_role"] = "os-ops-messaging" +default["openstack"]["mq"]["service_type"] = "rabbitmq" +default["openstack"]["mq"]["port"] = "5672" +default["openstack"]["mq"]["user"] = "guest" +default["openstack"]["mq"]["vhost"] = "/"