- implemented foodcritic and cookstyle corrections - deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax - removed deprecated postgresql support - removed percona-cluster as the Percona cookbook has not been touched since 2015 - switched default rdbms to mariadb This change was largely born out of a discussion in #sous-chefs on the Chef Community Slack. The notion of using the vendor-provided package is preferred in the Chef Community versus the distro version if possible, due to inconsistencies in outcome. As a result, this cookbook focuses on MariaDB, and specifically from mariadb.org. : https://docs.openstack.org/install-guide/environment-sql-database.html Implements blueprint modern-chef Change-Id: I7ee0f5eae4e79e5c70ee8de4a0094a7c34fdd18f
Team and repository tags
This cookbook provides a reference example of database configuration for the OpenStack deployment provided by Chef for OpenStack. It currently supports MySQL and PostgreSQL.
ChefDK 0.15.15 with Ruby 2.1.x required.
- SLES 11 SP3
- RHEL/CentOS 7.0
The following cookbooks are dependencies:
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
- create and upload encrypted data bags into your chef environment, as
- database client configuration, selected by attributes
- database server configuration, selected by attributes
- calls mysql::ruby and mysql::client and installs the mysql client python packages
- configures the mysql server for OpenStack
- calls postgresql::ruby and postgresql::client and installs the postgresql client python packages
- configures the PostgreSQL server for OpenStack
- creates necessary tables, users, and grants for OpenStack
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
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
Please refer to the TESTING.md for instructions for testing the cookbook.
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 (firstname.lastname@example.org)|
|Author||Jason Cannavale (email@example.com)|
|Author||Ron Pedde (firstname.lastname@example.org)|
|Author||Joseph Breu (email@example.com)|
|Author||William Kelly (firstname.lastname@example.org)|
|Author||Darren Birkett (email@example.com)|
|Author||Evan Callicoat (firstname.lastname@example.org)|
|Author||Matt Thompson (email@example.com)|
|Author||Matt Ray (firstname.lastname@example.org)|
|Author||Sean Gallagher (<sean.gallagher@.att.com>)|
|Author||John Dewey (email@example.com)|
|Author||Ionut Artarisi (firstname.lastname@example.org)|
|Author||Mark Vanderwiel (email@example.com)|
|Author||Jan Klare (firstname.lastname@example.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.|
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
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.