RETIRED, Chef Cookbook - Support Cookbook for Database
Go to file
Darren Birkett 9e9080d67f Bump mysql cookbook version in metadata to 4.1.1
Change-Id: I2ebd6516f8b7150e0854458d491c5ea762a3a5fa
Fixes: bug 1294114
2014-03-19 09:03:23 +00:00
attributes Add ability to specify IP for service 2014-03-10 13:26:13 -04:00
recipes Merge "Add ability to specify IP for service" 2014-03-14 16:17:34 +00:00
spec Rename openstack-metering to openstack-telemetry 2014-03-13 03:45:05 -04:00
.gitignore update gitignore 2014-02-21 13:22:38 +00:00
.gitreview Brings in Matt's openstack-ops-database work 2013-05-29 12:36:07 -04:00
.rubocop.yml Disable the NumericLiterals cop for rubocop 2014-02-25 18:04:47 +00:00
Berksfile Cleaning up berks/metadata dependencies 2014-02-17 12:08:25 +00:00
CHANGELOG.md Rename openstack-metering to openstack-telemetry 2014-03-13 03:45:05 -04:00
Gemfile Upgrade/Update rubocop 2014-02-04 15:57:23 -05:00
Gemfile.lock Upgrade/Update rubocop 2014-02-04 15:57:23 -05:00
LICENSE first commit 2013-05-06 16:41:21 -05:00
README.md Add ability to specify IP for service 2014-03-10 13:26:13 -04:00
Strainerfile Update attributes to be rubocop compliant 2014-01-20 09:31:15 +00:00
TESTING.md Filling out initial rubocop support for metadata.rb and the Gemfile. 2014-01-09 17:35:10 -06:00
metadata.rb Bump mysql cookbook version in metadata to 4.1.1 2014-03-19 09:03:23 +00:00

README.md

Description

This cookbook provides a reference example of database configuration for the OpenStack Havana reference deployment provided by Chef for OpenStack. It currently supports MySQL and PostgreSQL.

Requirements

Chef 11 with Ruby 1.9.x required.

Platforms

  • Ubuntu-12.04
  • SLES 11 SP3
  • RHEL/CentOS 6.5

Cookbooks

The following cookbooks are dependencies:

  • database
  • openstack-common
  • mysql
  • postgresql

Usage

The usage of this cookbook is optional, you may choose to set up your own databases without using this cookbook. If you choose to do so, you will need to do the following:

  • create the schema specified by the openstack-db recipe.
  • create and upload encrypted data bags into your chef environment, as specified by #get_password in the openstack-db recipe.

Resources/Providers

None

Templates

None

Recipes

client

  • database client configuration, selected by attributes

server

  • database server configuration, selected by attributes

mysql-client

  • calls mysql::ruby and mysql::client and installs 'mysql_python_packages'

mysql-server

  • configures the mysql server for OpenStack

postgresql-client

  • calls postgresql::ruby and postgresql::client and installs 'postgresql_python_packages'

postgresql-server

  • configures the PostgreSQL server for OpenStack

openstack-db

  • creates necessary tables, users, and grants for OpenStack

Attributes

  • openstack["db"]["platform"]["mysql_python_packages"] - platform-specific mysql python packages to install

The following attributes are defined in attributes/database.rb of the common cookbook, but are documented here due to their relevance:

  • openstack["endpoints"]["db"]["host"] - The IP address to bind the database service to
  • openstack["endpoints"]["db"]["scheme"] - Unused at this time
  • openstack["endpoints"]["db"]["port"] - The port to bind the database service to
  • openstack["endpoints"]["db"]["path"] - Unused at this time
  • openstack["endpoints"]["db"]["bind_interface"] - The interface name to bind the database service to

If the value of the "bind_interface" attribute is non-nil, then the database service will be bound to the first IP address on that interface. If the value of the "bind_interface" attribute is nil, then the database service will be bound to the IP address specified in the host attribute.

Testing

Please refer to the TESTING.md for instructions for testing the cookbook.

Berkshelf

Berks will resolve version requirements and dependencies on first run and store these in Berksfile.lock. If new cookbooks become available you can run berks update to update the references in Berksfile.lock. Berksfile.lock will be included in stable branches to provide a known good set of dependencies. Berksfile.lock will not be included in development branches to encourage development against the latest cookbooks.

License and Author

Author Justin Shepherd (justin.shepherd@rackspace.com)
Author Jason Cannavale (jason.cannavale@rackspace.com)
Author Ron Pedde (ron.pedde@rackspace.com)
Author Joseph Breu (joseph.breu@rackspace.com)
Author William Kelly (william.kelly@rackspace.com)
Author Darren Birkett (darren.birkett@rackspace.co.uk)
Author Evan Callicoat (evan.callicoat@rackspace.com)
Author Matt Thompson (matt.thompson@rackspace.co.uk)
Author Matt Ray (matt@opscode.com)
Author Sean Gallagher (<sean.gallagher@.att.com>)
Author John Dewey (jdewey@att.com)
Author Ionut Artarisi (iartarisi@suse.cz)
Copyright Copyright (c) 2012-2013, Rackspace US, Inc.
Copyright Copyright (c) 2012-2013, Opscode, Inc.
Copyright Copyright (c) 2013, AT&T Services, Inc.
Copyright Copyright (c) 2013, 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. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.