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


certbot-cdh (4) Versions 0.2.0

Installs/Configures certbot-cdh

cookbook 'certbot-cdh', '= 0.2.0', :supermarket
cookbook 'certbot-cdh', '= 0.2.0'
knife supermarket install certbot-cdh
knife supermarket download certbot-cdh
Quality 33%


The certbot-cdh integrates certbot with config-driven-helper sites, to automatically
set up and link the SSL certificates to each site.

It by default creates a single certificate shared between each site, adding all
['server_name']s and ['server_aliases'] to the certificate.

It can optionally split up the certificates into separate sites based on site
['ssl']['use_sni'] and ['ssl']['san_group'] settings.


Add "recipe[certbot-cdh]" to enable it.

Include the following in attributes:

"default_attributes": {
  "certbot": {
    "cert-owner": {
      "email": ""
  "nginx": {
    "shared_config": {
      "<project-name>": {
        "protocols": ["http", "https"],
        "includes_first": [

Add the following cookbooks to the Berksfile:

cookbook 'config-driven-helper', '~> 2.5'
cookbook 'certbot-cdh', '~> 0.1.0'

Given you have nginx or apache sites defined for example as:

"default_attributes": {
  "nginx": {
    "sites": {
      "mysite1": {
        "server_name": "",
        "docroot": "/var/www/mysite1/public",
        "inherits": "<project name>"
      "mysite2": {
        "server_name": "",
        "server_aliases": [''],
        "docroot": "/var/www/mysite1/public",
        "inherits": "<project name>"

This will create letsencrypt cert/chain/fullchain/privkey pem files in:


The certificate will have SAN domains:

Certbot uses the first domain of the certificate's domains as the folder to store
them in.

Node attributes for the sites will automatically be set up to point ['ssl']['certfile'],
['ssl']['certchainfile'], and ['ssl]['keyfile'] to the correct pem files for
each site.

Where apache will use:
['ssl']['certfile'] = /etc/letsencrypt/live/
['ssl']['certchainfile'] = /etc/letsencrypt/live/
['ssl']['keyfile'] = /etc/letsencrypt/live/

And nginx will use:
['ssl']['certfile'] = /etc/letsencrypt/live/
['ssl']['keyfile'] = /etc/letsencrypt/live/

config-driven-helper::apache-sites and config-driven-helper::nginx-sites will
use this to set up their vhost's ssl configuration.

See the spec for examples of using ['ssl']['use_sni'] and ['ssl']['san_group']
to split up the certificates per config-driven-helper site.


  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

Supermarket share

stove is used to create git tags and
publish the cookbook on

To tag/publish you need to be a contributor to the cookbook on Supermarket and

$ stove login --username  --key ~/.chef/.pem
$ rake publish

It will take the version defined in metadata.rb, create a tag, and push the
cookbook to

License and Authors

  • Author:: Andy Thompson
  • Author:: Felicity Ratcliffe
Copyright:: 2016 The Inviqa Group Ltd

See LICENSE file

Dependent cookbooks

config-driven-helper >= 2.5.0
certbot ~> 0.1.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.2.0 (30th October 2018)

  • Support config-driven-helper version 3

0.1.0 (10th August 2016)

  • Initial release

Collaborator Number Metric

0.2.0 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.2.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

Foodcritic Metric

0.2.0 failed this metric

FC022: Resource condition within loop may not behave as expected: certbot-cdh/recipes/default.rb:40
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

0.2.0 passed this metric

Testing File Metric

0.2.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.2.0 passed this metric