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


fog_cloud (4) Versions 0.2.0

LWRPs for managing cloud resources using fog []

cookbook 'fog_cloud', '= 0.2.0'
cookbook 'fog_cloud', '= 0.2.0', :supermarket
knife supermarket install fog_cloud
knife supermarket download fog_cloud
Quality -%


This cookbook provides resources and providers to configure and manage generic cloud resources using fog project. Currently supported resources: * Volume (fog_cloud_volume)


It was tested with Chef 11.8.2 and against Openstack Grizzly installation


These will be installed at compile time if they don't already exist so that require 'fog' does not fail.


Create volume

fog_cloud_volume 'test' do
  action :create
  size 20 # size of the volume in GB 
               :provider => 'OpenStack',
               :openstack_auth_url => node[:openstack_auth_url],
               :openstack_username => node[:openstack_username],
               :openstack_api_key => node[:openstack_api_key],
               :openstack_tenant => node[:openstack_tenant]

Destroy volume

fog_cloud_volume 'test' do
  action :destroy
               :provider => 'OpenStack',
               :openstack_auth_url => node[:openstack_auth_url],
               :openstack_username => node[:openstack_username],
               :openstack_api_key => node[:openstack_api_key],
               :openstack_tenant => node[:openstack_tenant]


When resource is created it sets node['fog_cloud']['volumes'] which is an array of hashes. Each hash is the information for one volume instance. All data for that volume can be access from the has.

Sample node['fog_cloud']['volumes']:

node['fog_cloud']['volumes'] =
       "status": "in-use",
       "displayDescription": "testing_2",
       "availabilityZone": "nova",
       "displayName": "testing_2",
       "attachments": [
            "device": "/dev/vdd",
            "serverId": "31a2e888-367a-466a-af86-f193339c31d8",
            "id": "bb145bc2-6ddc-429e-8f0d-1ba69e7f9847",
            "volumeId": "bb145bc2-6ddc-429e-8f0d-1ba69e7f9847"
       "volumeType": "None",
       "snapshotId": null,
       "metadata": {
         "readonly": "False",
         "attached_mode": "rw"
       "id": "bb145bc2-6ddc-429e-8f0d-1ba69e7f9847",
       "createdAt": "2014-08-08T18:24:07.000000",
       "size": 10



Does nothing.


Just for tests and examples

License and Author

Author:: Florin STAN (

Copyright 2014, Florin STAN

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.

Dependent cookbooks

build-essential >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found