add Trove attributes (mq, endpoints, database)

Change-Id: Idb112a2ad9ca8c064b5f023bf3e8916ee04f5857
This commit is contained in:
Ionuț Arțăriși
2014-06-11 16:30:49 +02:00
parent c4716383e7
commit cf0db5598d
5 changed files with 28 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
# CHANGELOG for cookbook-openstack-common
This file is used to list changes made in each version of cookbook-openstack-common.
## 9.5.1
* Add Trove endpoints, database and mq attributes
## 9.5.0
* Add new image_id cli library method for obtaining glance ID from image name

View File

@@ -179,6 +179,14 @@ default['openstack']['db']['orchestration']['db_name'] = 'heat'
default['openstack']['db']['orchestration']['username'] = 'heat'
default['openstack']['db']['orchestration']['options'] = node['openstack']['db']['options']
# Database used by OpenStack Database (Trove)
default['openstack']['db']['database']['service_type'] = node['openstack']['db']['service_type']
default['openstack']['db']['database']['host'] = node['openstack']['endpoints']['db']['host']
default['openstack']['db']['database']['port'] = node['openstack']['endpoints']['db']['port']
default['openstack']['db']['database']['db_name'] = 'trove'
default['openstack']['db']['database']['username'] = 'trove'
default['openstack']['db']['database']['options'] = node['openstack']['db']['options']
# Switch to store the MySQL root password in a databag instead of
# using the generated OpenSSL cookbook secure_password one.
default['openstack']['db']['root_user_use_databag'] = false

View File

@@ -4,7 +4,7 @@
# Attributes:: default
#
# Copyright 2012-2013, AT&T Services, Inc.
# Copyright 2013, SUSE Linux GmbH
# Copyright 2013-2014, SUSE Linux GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -357,6 +357,17 @@ default['openstack']['endpoints']['orchestration-api-cloudwatch']['port'] = '800
default['openstack']['endpoints']['orchestration-api-cloudwatch']['path'] = '/v1'
default['openstack']['endpoints']['orchestration-api-cloudwatch']['bind_interface'] = nil
# The OpenStack Database (Trove) API endpoint
default['openstack']['endpoints']['database-api-bind']['host'] = node['openstack']['endpoints']['bind-host']
default['openstack']['endpoints']['database-api-bind']['port'] = '8779'
default['openstack']['endpoints']['database-api-bind']['bind_interface'] = nil
default['openstack']['endpoints']['database-api']['host'] = node['openstack']['endpoints']['host']
default['openstack']['endpoints']['database-api']['scheme'] = 'http'
default['openstack']['endpoints']['database-api']['port'] = '8779'
default['openstack']['endpoints']['database-api']['path'] = '/v1'
default['openstack']['endpoints']['database-api']['bind_interface'] = nil
# Alternately, if you used some standardized DNS naming scheme, you could
# do something like this, which would override any part-wise specifications above.
#

View File

@@ -4,7 +4,7 @@
# Attributes:: messaging
#
# Copyright 2012-2013, AT&T Services, Inc.
# Copyright 2013, SUSE Linux GmbH
# Copyright 2013-2014, SUSE Linux GmbH
# Copyright 2013-2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -34,7 +34,8 @@ default['openstack']['endpoints']['mq']['bind_interface'] = nil
###################################################################
# Services to assign mq attributes for
###################################################################
services = %w{block-storage compute image telemetry network orchestration}
services = %w{block-storage compute database image
telemetry network orchestration}
###################################################################
# Generic default attributes

View File

@@ -4,7 +4,7 @@ maintainer_email 'cookbooks@lists.tfoundry.com'
license 'Apache 2.0'
description 'Common OpenStack attributes, libraries and recipes.'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '9.5.0'
version '9.5.1'
recipe 'openstack-common', 'Installs/Configures common recipes'
recipe 'openstack-common::set_endpoints_by_interface', 'Set endpoints by interface'