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


fb_apt (1) Versions 0.1.0

Installs/Configures fb_apt

cookbook 'fb_apt', '~> 0.1.0'
cookbook 'fb_apt', '~> 0.1.0', :supermarket
knife cookbook site install fb_apt
knife cookbook site download fb_apt
Quality 44%

fb_apt Cookbook

The fb_apt cookbook installs and configures APT, the Debian package management tool.



  • node['fb_apt']['config']
  • node['fb_apt']['keys']
  • node['fb_apt']['keyring']
  • node['fb_apt']['keyserver']
  • node['fb_apt']['mirror']
  • node['fb_apt']['preserve_sources_list_d']
  • node['fb_apt']['preferences']
  • node['fb_apt']['repos']
  • node['fb_apt']['update_delay']
  • node['fb_apt']['want_backports']
  • node['fb_apt']['want_non_free']
  • node['fb_apt']['want_source']


To install and configure APT include fb_apt, which will populate the repository sources in /etc/apt/sources.list and update the package cache during the run if it's older than node['fb_apt']['update_delay'] seconds (defaults to 86400). To force an update on every Chef run, set this attribute to 0. The actual update is done via the execute[apt-get update] resource, which other cookbooks can suscribe to or notify as well.

Repository sources

By default the cookbook will setup the base distribution repos based on the codename (as defined in node['lsb']['codename']) using a sensible default mirror for the package sources. The mirror can be customized with node['fb_apt']['mirror']; if set to nil, base repos will not be included at all in /etc/apt/sources.list. If base repos are enabled, the additional backports and non-free sources can be enabled with the node['fb_apt']['want_backports'] and node['fb_apt']['want_non_free'] attributes, and source code repos can be enabled with node['fb_apt']['want_source']; these all default to false.

Additional repository sources can be added with node['fb_apt']['repos']. By default fb_apt will clobber existing contents in /etc/apt/sources.list.d to ensure it has full control on the repository list; this can be disabled with node['fb_apt']['preserve_sources_list_d'].


Repository keys can be added to node['fb_apt']['keys'] which is a hash in the keyid => key format; if key is nil the key will be automatically fetched from the node['fb_apt']['keyserver'] keyserver ( by default). Example:

node.default['fb_apt']['keys']['94558F59'] = nil
node.default['fb_apt']['keys']['F3EFDBD9'] = <<-eos

Automatic key fetching can be disabled by setting the keyserver to nil; this will produce an exception for any unspecified key. By default fb_apt will manage the keyring at /etc/apt/trusted.gpg; this can be customized with node['fb_apt']['keyring'].


APT behaviour can be customized using node['fb_apt']['config'], which will be used to populate /etc/apt/apt.conf. Note that this will take precedence over anything in /etc/apt/apt.conf.d. Example:

  'Acquire::http' => {
    'Proxy' => 'http://myproxy:3412',


You can fine tune which versions of packages will be selected for installation by tweaking APT preferences via node['fb_apt']['preferences']. Note that we clobber the contents of /etc/apt/preferences.d to ensure this always takes precedence. Example:

  'Pin dpatch package from experimental' => {
    'Package' => 'dpatch',
    'Pin' => 'release o=Debian,a=experimental',
    'Pin-Priority' => 450,

Dependent cookbooks

fb_helpers >= 0.0.0

Contingent cookbooks

fb_init_sample Applicable Versions

Collaborator Number Metric

0.1.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.1.0 passed this metric

Foodcritic Metric

0.1.0 failed this metric

FC064: Ensure issues_url is set in metadata: fb_apt/metadata.rb:1
FC066: Ensure chef_version is set in metadata: fb_apt/metadata.rb:1
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

0.1.0 failed this metric

fb_apt does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric

0.1.0 passed this metric

Publish Metric

0.1.0 passed this metric

Supported Platforms Metric

0.1.0 passed this metric

Testing File Metric

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must include a tag that matches this cookbook version number