Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Development repository for Opscode Cookbook ubuntu
branch: master

This branch is 16 commits ahead, 42 commits behind opscode-cookbooks:master

Failed to load latest commit information.
attributes Foodcritic fixes
recipes Foodcritic fixes
templates/default Added support for enabling backports, partner and extras repository Preparing repository for splitting cookbooks into their own repos.
CONTRIBUTING [COOK-1087] Update the CONTRIBUTING file to fix a minor typo
LICENSE Preparing repository for splitting cookbooks into their own repos.
metadata.rb Foodcritic fixes


Sets up apt sources for Ubuntu.



  • Ubuntu


  • 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']['backports_repository'] - enable backports repository
  • node['ubuntu']['partner_repository'] - enable canonical partner's repository
  • node['ubuntu']['extras_repository'] - enable extras repository
  • node['ubuntu']['unattended_upgrades'] - enable unattended upgrades (for security updates)

There is also a attributes/brasil.rb which defaults archive_url and security_url to a mirror hosted by



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.

If you want to use brasil default attributes, please use include recipe[ubuntu::brasil] instead.

License and Author

Author:: Adam Jacob Author:: Joshua Timberman Author:: Gabriel Mazetto

Copyright:: 2008-2011, Opscode, Inc Copyright:: 2012-2012, Gabriel Mazetto

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.

Something went wrong with that request. Please try again.