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

The ubuntu cookbook has been deprecated

Author provided reason for deprecation:

The ubuntu cookbook has been deprecated and is no longer being maintained by its authors. Use of the ubuntu cookbook is no longer recommended.


ubuntu (16) Versions 1.2.0

Sets up apt sources for Ubuntu Linux

cookbook 'ubuntu', '= 1.2.0', :supermarket
cookbook 'ubuntu', '= 1.2.0'
knife supermarket install ubuntu
knife supermarket download ubuntu
Quality 100%

Ubuntu Cookbook

Build Status
Cookbook Version

Sets up apt sources for Ubuntu.



  • Ubuntu


  • Chef 11+


  • apt


See attributes/default.rb for default values.

  • node['ubuntu']['archive_url'] - Archived package repo URL
  • node['ubuntu']['security_url'] - Security update package repo URL
  • node['ubuntu']['include_source_packages'] - Add source packages to the apt sources. Defaults to true
  • node['ubuntu']['architectures'] - Optional array of architectures to download from the repos. Defaults to nil and all archs are used
  • node['ubuntu']['components'] - Repository components to use. Defaults to "main restricted universe multiverse"
  • node['ubuntu']['locale'] - The locale to set the OS to
  • node['ubuntu']['codename'] - A codename to use, defaults to node['lsb']['codename'], e.g. precise.



Includes the apt default recipe to ensure the package cache is
updated and manages the /etc/apt/sources.list for the node's
platform code name. The template adds sources for main, restricted,
universe and multiverse.


Include recipe[ubuntu] on systems where you want to manage the
sources.list. Currently the template enables main, restricted,
universe and multiverse for the node's codename (e.g., lucid, natty,
etc). See Roadmap.

License & Authors

Author: Cookbook Engineering Team (

Copyright: 2008-2015, Chef Software, Inc.

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

apt >= 0.0.0

Contingent cookbooks

cabot Applicable Versions
common_linux Applicable Versions
devopsdance-consul-template Applicable Versions
devopsdance-dnsmasq Applicable Versions
devopsdance-policyrcd Applicable Versions
devopsdance-rinetd Applicable Versions
devopsdance-tinyproxy Applicable Versions
flyway-cli Applicable Versions
hadoop_cluster Applicable Versions
il-base Applicable Versions
metarepo Applicable Versions
monit-ng Applicable Versions
mythtv Applicable Versions
paramount Applicable Versions
terraria Applicable Versions
ut_base Applicable Versions
ut_workstation Applicable Versions

ubuntu Cookbook CHANGELOG

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

v1.2.0 (2015-10-19)

  • Updated the cookbook to cleanly exit if running on non-Ubuntu platforms
  • Switched Travis CI integration testing from Digital Ocean to Kitchen-Docker on Travis
  • Added testing on CentOS to Kitchen config
  • Added standard Chef rubocop config
  • Updated Berksfile to 3.X format
  • Updated Contributing and Testing docs
  • Updated development and testing gems in the Gemfile
  • Added and maintainers.toml files
  • Added Travis and cookbook version badges to the readme
  • Added a chefignore file to limit what's uploaded to the server
  • Added long_description, source_url, and issues_url to the metadata.rb file
  • Resolved all Rubocop warnings

v1.1.8 (2014-07-28)

  • Fixed compilation error on non-linux platforms

v1.1.6 (2014-02-14)

New Feature

  • COOK-4325 - allow setting codename as an attribute


  • COOK-3852 - Ubuntu receipe triggers an apt-get update before replacing the default sources.list


  • COOK-3852 - updating source.list before calling apt-get update
  • Style and test harness


Text goes here

Foodcritic Metric

1.2.0 passed this metric