RETIRED, Chef Cookbook - Support Cookbook for Database
Go to file
Lance Albertson 38d0a27c66 Updates for Train
Changed:
- Update release to train
- Update to mariadb ~> 4.0

Fixed:
- Migrate to using Chef::Log.warn instead of the log resource to fix
  idempotency issues.
- Cookstyle

Removed:
- Unused .rubocop.yml

Depends-On: https://review.opendev.org/731851
Change-Id: Ia705cf4fb00098ba5d34f22268c0e409b82580a0
2020-05-29 17:13:44 -07:00
.delivery Stein fixes 2020-03-19 10:56:43 -07:00
attributes Remove support for mysql 2020-03-30 13:50:33 -07:00
files/default Add receipes for mariadb cluster deployment 2018-01-12 10:24:20 +00:00
recipes Updates for Train 2020-05-29 17:13:44 -07:00
spec Fix mariadb-cluster-server recipe 2020-04-07 14:34:39 +00:00
.gitignore Initial kilo updates 2015-02-27 14:25:44 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:37:17 +00:00
.zuul.yaml Rename openstack-chef-repo references to openstack-chef 2018-08-06 21:50:09 -07:00
Berksfile Set Berksfile to use ruby solver 2020-01-23 16:49:25 -08:00
CONTRIBUTING.md Workflow documentation is now in infra-manual 2014-12-05 03:30:44 +00:00
LICENSE ops-database refactor for Pike and Chef 13 2018-01-11 10:36:09 -08:00
README.rst Updates for Train 2020-05-29 17:13:44 -07:00
Rakefile Updates for Train 2020-05-29 17:13:44 -07:00
TESTING.md Sync stackforge/cookbook* to openstack/cookbook* for ops-database cookbook 2015-06-16 11:44:55 +08:00
metadata.rb Updates for Train 2020-05-29 17:13:44 -07:00

README.rst

OpenStack Chef Cookbook - ops-database

image

Description

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

Requirements

  • Chef 15 or higher
  • Chef Workstation 0.18.3 for testing (also includes Berkshelf for cookbook dependency resolution)

Platforms

  • ubuntu
  • redhat
  • centos

Cookbooks

The following cookbooks are dependencies:

  • 'mariadb', '~> 4.0'
  • 'openstack-common', '~> 20.0.0'

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

  • Installs client packages for the database used by the deployment.

server

  • Installs and configures server packages for the database used by the deployment.

mariadb-client

  • Installs MariaDB client packages.

mariadb-server

  • Installs and configures MariaDB server packages.

mariadb-cluster-client

  • Installs MariaDB Cluster client packages.

mariadb-cluster-server

  • Installs and configures MariaDB Cluster server packages.

openstack-db

  • Creates necessary tables, users, and grants for OpenStack.

Attributes

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']['port'] - The port to bind the database service to
  • openstack['endpoints']['db']['bind_interface'] - The interface name to bind the database service to
  • openstack['db']['root_user_key'] - The key used to retrieve the root user password; the key is both the name of the data-bag item and name of the key containing the password value within the data-bag item. This is defined in Common.

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.

See the attributes mysql.rb file for the mysql specific attributes that are available.

For more information see: http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html

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 ()
Author John Dewey (jdewey@att.com)
Author Ionut Artarisi (iartarisi@suse.cz)
Author Mark Vanderwiel (vanderwl@us.ibm.com)
Author Jan Klare (j.klare@x-ion.de)
Author Lance Albertson (lance@osuosl.org)
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-2014, SUSE Linux GmbH
Copyright Copyright (c) 2014-2015, IBM, Corp.
Copyright Copyright (c) 2019-2020, Oregon State University

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.