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


terraform (24) Versions 0.3.0

Installs Terraform (

cookbook 'terraform', '= 0.3.0'
cookbook 'terraform', '= 0.3.0', :supermarket
knife supermarket install terraform
knife supermarket download terraform
Quality 0%

terraform Cookbook

Installs Terraform by Mitchell Hashimoto (@mitchellh).

Terraform is an open source tool that allows you to configure entire infrastructure stack as code.



The only dependency this cookbook has is the ark cookbook.


The following platforms are supported and have been automatically tested under Test Kitchen:

  • Amazon Linux (2014.03.2-hvm)
  • CentOS 6.5
  • CentOS 7
  • Debian 7.6
  • Fedora 20
  • FreeBSD 10
  • Ubuntu 14.04

Other versions of these OSs should work. Alternative Debian and RHEL family distributions are also assumed to work. Please report any additional platforms you have tested so they can be added.


Simply include recipe[terraform] in your run_list to have Terraform installed.



Installs Terraform from official pre-compiled binaries.



The version of Terraform that will be installed.


sha256 checksums for the intended version's archive file, used for security and should be changed alongside version.

NOTE: All other attributes are considered internal and shouldn't normally need to be changed.



Pull requests are very welcome! Ideally create a topic branch for every separate change you make.

This cookbook uses [ChefSpec][chefspec] for unit tests. I also use Food Critic and RuboCop to check for style issues. When contributing it would be very helpful if you could run these via bundle exec spec and bundle exec style.

Lastly, there are Serverspec integration tests for use with Test Kitchen. To see all of the available integration test suites just check bundle exec rake T or bundle exec kitchen list. It would be great if you could run these tests too, you may however leave out the Amazon Linux test suite if you do not have an AWS account as it runs on an EC2 instance (you will be billed for running this).


This cookbook, especially the checksum stuff in attributes file has been influenced by the Packer cookbook by @sit.

License and Author

Author:: Ross Timson <>

Copyright 2014, Ross Timson

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

ark ~> 1.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

terraform Cookbook CHANGELOG



  • Buump Terraform to latest version (0.6.11) (@thegreenrobot)




  • Update to Terraform 0.5.1 (@wilb)
  • Fixing rsync trailing slash issue. (@dquiles)


  • Update to Terraform 0.3.1 (@cantenesse)
  • Kills hard dependency on Ark cookbook (@cantenesse)


  • Initial release.

Foodcritic Metric

0.3.0 failed this metric

FC002: Avoid string interpolation where not required: /tmp/cook/6d66c213ae099a64e158cc65/terraform/recipes/default.rb:25
FC023: Prefer conditional attributes: /tmp/cook/6d66c213ae099a64e158cc65/terraform/recipes/default.rb:41