Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


openstack-ops-database (9) Versions 16.0.0

Provides the shared database configuration for OpenStack

cookbook 'openstack-ops-database', '= 16.0.0', :supermarket
cookbook 'openstack-ops-database', '= 16.0.0'
knife supermarket install openstack-ops-database
knife supermarket download openstack-ops-database
Quality 67%

Team and repository tags

Team and repository tags

Chef OpenStack Logo


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.


  • Ubuntu-14.04
  • SLES 11 SP3
  • RHEL/CentOS 7.0


The following cookbooks are dependencies:

  • database
  • openstack-common
  • mysql
  • mysql2_chef_gem
  • postgresql


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.







  • 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:


Please refer to the []( 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 (
Author Jason Cannavale (
Author Ron Pedde (
Author Joseph Breu (
Author William Kelly (
Author Darren Birkett (
Author Evan Callicoat (
Author Matt Thompson (
Author Matt Ray (
Author Sean Gallagher (
Author John Dewey (
Author Ionut Artarisi (
Author Mark Vanderwiel (
Author Jan Klare (
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,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

openstack-common >= 16.0.0
mariadb ~> 1.5
mysql ~> 8.2
mysql2_chef_gem ~> 2.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric

16.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

16.0.0 passed this metric

Foodcritic Metric

16.0.0 passed this metric

No Binaries Metric

16.0.0 passed this metric

Testing File Metric

16.0.0 passed this metric

Version Tag Metric

16.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must include a tag that matches this cookbook version number