Using the common ["openstack"]["db"] attributes.
Allows the global setting of port and db type. Change-Id: I2dd6f03f30901f5dfb118c82024055c2d0e0d255
This commit is contained in:
@@ -8,6 +8,7 @@ This file is used to list changes made in each version of cookbook-openstack-com
|
||||
* Re-factored methods which search to a generic `#search_for`.
|
||||
* 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.
|
||||
|
||||
## 0.2.6:
|
||||
* Update Chef dependency to Chef 11.
|
||||
|
||||
@@ -250,46 +250,51 @@ default['openstack']['endpoints']['metering-api']['path'] = "/v1"
|
||||
# The sql_connection variable would then be set to "mysql://keystone:password@192.168.0.3:keystone"
|
||||
# and could then be written to the keystone.conf file in a template.
|
||||
|
||||
# Default database attributes
|
||||
default['openstack']['db']['server_role'] = "os-ops-database"
|
||||
default['openstack']['db']['service_type'] = "mysql"
|
||||
default['openstack']['db']['port'] = "3306"
|
||||
|
||||
# Database used by the OpenStack Compute (Nova) service
|
||||
default['openstack']['db']['compute']['db_type'] = "mysql"
|
||||
default['openstack']['db']['compute']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['compute']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['compute']['port'] = "3306"
|
||||
default['openstack']['db']['compute']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['compute']['db_name'] = "nova"
|
||||
|
||||
# Database used by the OpenStack Identity (Keystone) service
|
||||
default['openstack']['db']['identity']['db_type'] = "mysql"
|
||||
default['openstack']['db']['identity']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['identity']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['identity']['port'] = "3306"
|
||||
default['openstack']['db']['identity']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['identity']['db_name'] = "keystone"
|
||||
|
||||
# Database used by the OpenStack Image (Glance) service
|
||||
default['openstack']['db']['image']['db_type'] = "mysql"
|
||||
default['openstack']['db']['image']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['image']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['image']['port'] = "3306"
|
||||
default['openstack']['db']['image']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['image']['db_name'] = "glance"
|
||||
|
||||
# Database used by the OpenStack Network (Quantum) service
|
||||
default['openstack']['db']['network']['db_type'] = "mysql"
|
||||
default['openstack']['db']['network']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['network']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['network']['port'] = "3306"
|
||||
default['openstack']['db']['network']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['network']['db_name'] = "quantum"
|
||||
|
||||
# Database used by the OpenStack Volume (Cinder) service
|
||||
default['openstack']['db']['volume']['db_type'] = "mysql"
|
||||
default['openstack']['db']['volume']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['volume']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['volume']['port'] = "3306"
|
||||
default['openstack']['db']['volume']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['volume']['db_name'] = "cinder"
|
||||
|
||||
# Database used by the OpenStack Dashboard (Horizon)
|
||||
default['openstack']['db']['dashboard']['db_type'] = "mysql"
|
||||
default['openstack']['db']['dashboard']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['dashboard']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['dashboard']['port'] = "3306"
|
||||
default['openstack']['db']['dashboard']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['dashboard']['db_name'] = "horizon"
|
||||
|
||||
# Database used by OpenStack Metering (Ceilometer)
|
||||
default['openstack']['db']['metering']['db_type'] = "mysql"
|
||||
default['openstack']['db']['metering']['db_type'] = node['openstack']['db']['service_type']
|
||||
default['openstack']['db']['metering']['host'] = "127.0.0.1"
|
||||
default['openstack']['db']['metering']['port'] = "3306"
|
||||
default['openstack']['db']['metering']['port'] = node['openstack']['db']['port']
|
||||
default['openstack']['db']['metering']['db_name'] = "ceilometer"
|
||||
|
||||
# Switch to store the MySQL root password in a databag instead of
|
||||
|
||||
Reference in New Issue
Block a user