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-image (8) Versions 16.0.0

Installs and configures the Glance Image Registry and Delivery Service

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

Team and repository tags

Team and repository tags

Chef OpenStack Logo


This cookbook installs the OpenStack Image service Glance as part of an
OpenStack reference deployment Chef for OpenStack. The contains documentation for using
this cookbook in the context of a full OpenStack deployment. Glance is installed
from packages, optionally populating the repository with default images.


  • Chef 12 or higher
  • chefdk 0.9.0 or later for testing (also includes berkshelf for cookbook dependency resolution)


  • ubuntu
  • redhat
  • centos


The following cookbooks are dependencies:

  • 'openstack-common', '>= 14.0.0'
  • 'openstack-identity', '>= 14.0.0'
  • 'openstackclient', '>= 0.1.0'


Please see the extensive inline documentation in attributes/*.rb for
descriptions of all the settable attributes for this cookbook.

Note that all attributes are in the default['openstack'] "namespace"

The usage of attributes to generate the glance-api.conf glance-registry.conf is
decribed in the openstack-common cookbook.



  • Installs the glance-api server


  • Install the glance client packages


  • Registers the API endpoint and glance service Keystone user


  • Installs the glance-registry server


  • Upload image to glance. If you want to upload image during openstack installation, you need to add this recipe or the os-image role to the run list in a certain role and ensure before this recipe or the os-image role glance api and glance registry recipes have been executed.

Glance Backend

The Glance cookbook currently supports file, swift, and Rackspace Cloud Files
(swift API compliant) backing stores. NOTE: changing the storage location from
cloudfiles to swift (and vice versa) requires that you manually export and
import your stored images.

To enable these features set the following in the default attributes section in
your environment:


"openstack": {
    "image": {
        "api": {
            "default_store": "file"
        "upload_images": [


"openstack": {
    "image": {
        "api": {
            "default_store": "swift"
        "upload_images": [



Action: :upload

  • :image_url: Location of the image to be loaded into Glance.
  • :image_name: A name for the image.
  • :image_type: unknown, qcow, ami, vhd, vmdk, vdi, iso, raw. Defaults of unknown will use file extension '.gz', '.tgz' = ami, '.qcow2', '.img' = qcow.
  • :identity_user: Username of the Keystone admin user.
  • :identity_pass: Password for the Keystone admin user.
  • :identity_tenant: Name of the Keystone admin user's tenant.
  • :identity_uri: URI of the Identity API endpoint.

For testing this provider with ChefSpec, a custom matcher was added to libraries/matchers.rb.

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 Ray (
Author Jay Pipes (
Author John Dewey (
Author Craig Tracey (
Author Sean Gallagher (
Author Mark Vanderwiel (
Author Salman Baset (
Author Chen Zhiwei (
Author Eric Zhou (
Author Jian Hua Geng (
Author Ionut Artarisi (
Author Imtiaz Chowdhury (
Author Jan Klare (
Author Christoph Albers (
Copyright Copyright (c) 2012, Rackspace US, Inc.
Copyright Copyright (c) 2012-2013, Opscode, Inc.
Copyright Copyright (c) 2012-2013, AT&T Services, Inc.
Copyright Copyright (c) 2013, Craig Tracey
Copyright Copyright (c) 2013-2014, IBM Corp.
Copyright Copyright (c) 2014, 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

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.

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