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


cloud_init (2) Versions 0.2.0

Deploy cloud-init configuration files

cookbook 'cloud_init', '~> 0.2.0'
cookbook 'cloud_init', '~> 0.2.0', :supermarket
knife cookbook site install cloud_init
knife cookbook site download cloud_init
Quality 89%

cloud_init Cookbook

Deploy cloud_init configuration files from attributes or LWRP.

Cookbook Version Build Status



The following platforms and versions are tested and supported using Opscode's test-kitchen. - Debian 8 - Debian 9 - Ubuntu 14.04 - Ubuntu 16.04



Key Type Description
[cloud_init][cfgs] Hash Hash of configuration files (default: {})



Include cloud_init in your node's run_list and set the cfgs attribute to create configuration files:

  "run_list": [
  "attributes": {
    "cloud_init": {
      "cfgs": {
        "hostname": {
          "priority": "90",
          "config": {
            "preserve_hostname": "true"

This setup will create the configuration file /etc/cloud/cloud.cfg.d/90_hostname.cfg with following content: preserve_hostname: true

Custom resources


This LWRP can be used to deploy cloud_init configuration files.

Action Description
:create Create a cloud-init configuration file
:delete Delete a cloud-init configuration file
Attribute Type Description
name String Name of the configuration file, this is the name attribute
priority Interger Priority of configuration file, The config filename is prefixed by this value
config Hash Hash configuration, used by the template.
cloud_init_cfg 'hostname' do
  priority 90
  config preserve_hostname: true





License and Authors

Authors: Sliim

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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

cloud_init CHANGELOG

This file is used to list changes made in each version of the cloud_init cookbook.


  • Improved configuration template file (#1)


  • Initial release of cloud_init cookbook

Collaborator Number Metric

0.2.0 failed this metric

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

Contributing File Metric

0.2.0 passed this metric

Foodcritic Metric

0.2.0 passed this metric

License Metric

0.2.0 passed this metric

No Binaries Metric

0.2.0 passed this metric

Publish Metric

0.2.0 passed this metric

Supported Platforms Metric

0.2.0 passed this metric

Testing File Metric

0.2.0 passed this metric

Version Tag Metric

0.2.0 passed this metric