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


aptly (37) Versions 2.4.1

Installs/Configures aptly

cookbook 'aptly', '= 2.4.1', :supermarket
cookbook 'aptly', '= 2.4.1'
knife supermarket install aptly
knife supermarket download aptly
Quality 100%

aptly Cookbook

Cookbook Version
Build Status

This cookbook installs and configures aptly


This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit or come chat with us on the Chef Community Slack in #sous-chefs.



  • Debian 9
  • Debian 10
  • Ubuntu 16.04
  • Ubuntu 18.04


Repository attributes

  • default['aptly']['repository']['uri'] = ''
  • default['aptly']['repository']['dist'] = 'squeeze'
  • default['aptly']['repository']['components'] = 'main'
  • default['aptly']['repository']['key'] = ''

Global repository attributes

  • default['aptly']['user'] = 'aptly'
  • default['aptly']['group'] = 'aptly'
  • default['aptly']['tmpDir'] = '/tmp'
  • default['aptly']['rootDir'] = '/opt/aptly'
  • default['aptly']['downloadConcurrency'] = 4
  • default['aptly']['downloadSpeedLimit'] = 0
  • default['aptly']['architectures'] = []
  • default['aptly']['dependencyFollowSuggests'] = false
  • default['aptly']['dependencyFollowRecommends'] = false
  • default['aptly']['dependencyFollowAllVariants'] = false
  • default['aptly']['dependencyFollowSource'] = false
  • default['aptly']['gpgDisableSign'] = false
  • default['aptly']['gpgDisableVerify'] = false
  • default['aptly']['gpgProvider'] = 'gpg'
  • default['aptly']['downloadSourcePackages'] = false
  • default['aptly']['skipLegacyPool'] = true
  • default['aptly']['ppaDistributorID'] = 'ubuntu'
  • default['aptly']['ppaCodename'] = ''
  • default['aptly']['FileSystemPublishEndpoints'] = {}
  • default['aptly']['S3PublishEndpoints'] = {}
  • default['aptly']['SwiftPublishEndpoints'] = {}

GPG attributes

  • default['aptly']['gpg']['key-type'] = 'RSA'
  • default['aptly']['gpg']['key-length'] = 4096
  • default['aptly']['gpg']['subkey-type'] = 'RSA'
  • default['aptly']['gpg']['subkey-length'] = 4096
  • default['aptly']['gpg']['name-real'] = 'Aptly'
  • default['aptly']['gpg']['name-comment'] = 'Aptly Key'
  • default['aptly']['gpg']['name-email'] = ''
  • default['aptly']['gpg']['expire-date'] = 0
  • default['aptly']['gpg']['passphrase'] = 'GreatPassPhrase'



Install and configure aptly


  • [aptly_db](documentation/resources/
  • [aptly_mirror](documentation/resources/
  • [aptly_publish](documentation/resources/
  • [aptly_repo](documentation/resources/


Please contribute to keep unit and functional tests up to date.
After modifications, please run the following commands to check if you break something:

  • chef exec rspec
  • kitchen test default-ubuntu-1804

NOTE: Available distro tests: default-debian-8, default-debian-9, default-ubuntu-1604 and default-ubuntu-1804

NOTE2: if you want to use Policyfile, rename Policyfile.rb.dist to Policyfile.rb in root and test directories, then execute chef update in each folder. Look inside .kitchen.yml and spec/spec_helper.rb too.


This project exists thanks to all the people who contribute.


Thank you to all our backers!


Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


All notable changes to this project will be documented in this file.

2.4.1 - 2021-08-30

  • Standardise files with files in sous-chefs/repo-management

2.4.0 - 2021-06-10

  • Make tmpdir configurable

2.3.3 - 2021-06-09

  • [CI] Update ActionsHub actions to point at main
  • [CI] Update GitHub Actions checkout to v2
  • Move resource documentation into the documentation folder

2.4.0 - 2021-06-10

  • Added ability to specify TMPDIR

2.3.2 (2020-11-16)

  • resolved cookstyle error: test/fixtures/cookbooks/aptly_test/recipes/default.rb:95:3 convention: Style/CommentAnnotation
  • resolved cookstyle error: spec/libraries/helpers_spec.rb:2:18 convention: Style/RedundantFileExtensionInRequire
  • resolved cookstyle error: test/integration/default/default_test.rb:1:1 convention: Style/Encoding
  • resolved cookstyle error: test/integration/default/resources_test.rb:1:1 convention: Style/Encoding

2.3.1 (2020-09-16)


  • Cookstyle Bot Auto Corrections with Cookstyle 6.17.7

2.3.0 (2020-08-26)


  • Ability to edit existing mirror configuration
  • Added missing properties to aptly_mirror resource
  • Changed aptly_mirror resource's property architectures to use node['aptly']['architectures'] rather than an empty list which was needed for idempotent mirror edits

2.2.0 (2020-08-20)

  • Changed the node['aptly']['gpg']['key-tpye'] attribute to node['aptly']['gpg']['key-type']. WARNING: This change may break existing cookbooks! Please adjust as needed.

2.1.2 (2020-06-18)

  • Fixed Debian platform version in the spec tests

2.1.1 2020-05-05

  • resolved cookstyle error: libraries/helpers.rb:51:14 warning: Lint/SendWithMixinArgument
  • resolved cookstyle error: libraries/helpers.rb:52:16 warning: Lint/SendWithMixinArgument
  • Use true and false in resources
  • Migrate to Github Actions for testing

2.1.0 2020-02-17

  • Extended Batch file and associated attributes
  • Batch file is deleted from /tmp after successful application
  • Publish resource :update has been extended with "sensetive true" parameters. So that the output of the assphrase during the chef-client run will be suppressed

2.0.2 2020-02-14

  • Migrate to Github Actions for testing
  • Changed usage of getent <user> passwd to getent passwd <user>
  • Use true and false in resources

2.0.1 2019-10-19

  • Latest Cookstyle changes in cookstyle 5.6.2

[2.0.0] - 2019-09-04

  • Add a with_installer parameter to the mirror resource
  • Change architectures argument in both the mirror and publish resources for consistency

[1.1.0] - 2019-08-03

  • Add timeout argument for some time consuming resources
  • Add support for aptly mirror -filter-with-deps argument
  • Add support for aptly mirror -with-udebs and -architectures arguments
  • Fix "can't modify frozen String" error caused by aptly_snapshot
  • Fix broken not_if for in aptly_mirror resource
  • Migrate to circleci for testing

v1.0.0 (24-10-2018)

  • Big refactoring
  • Update resource with latest usage of aptly
  • Create aptly_serve and aptly_api_serve resource
  • Create unit tests
  • Enhance integration test
  • Use Circle CI


  • Require at least Chef 11 and remove Chef 10 compatibility code
  • Resolve idempotency in the DB ownership resource
  • Enable the configuration of the publishing endpoints
  • Remove the Librarian Cheffile
  • Add a chefignore file to reduce the number of files pulled down to each node
  • Add chef_version, issues_url, and source_url metadata to metadata.rb
  • Resolve all cookstyle warnings
  • Remove test deps from the Gemfile and instead rely on ChefDK for testing
  • Swap local testing with Rake for Delivery Local Mode
  • Resolve all Foodcritic warnings


  • Update GPG Key for aptly repository


  • Support for multi-component publishing #16
  • Add filter attribute in mirror provider #17


  • use exact matches in provider for not_if checks
  • Add chefspec matchers


  • Support for cookbook file to distribute gpg key
  • Initializing gpg config for default user


  • Helper to define proper environment
  • Add repo attribute to repo resource
  • Fix group owner attribute
  • Correction for aptly user seed action 0.2.1
  • bug fix for writing files to the system as the wrong user


  • add providers for all aptly functionality


  • Initial release of aptly

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric

2.4.1 passed this metric

Contributing File Metric

2.4.1 passed this metric

Foodcritic Metric

2.4.1 passed this metric

No Binaries Metric

2.4.1 passed this metric

Testing File Metric

2.4.1 passed this metric

Version Tag Metric

2.4.1 passed this metric