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


consul-docker (4) Versions 0.3.1

Installs/Configures consul-docker

cookbook 'consul-docker', '= 0.3.1', :supermarket
cookbook 'consul-docker', '= 0.3.1'
knife supermarket install consul-docker
knife supermarket download consul-docker
Quality 43%


Cookbook to setup consul using docker.

Supported Platforms

Tested And Validated On
- Ubuntu 16.04


Recipe: consul-docker::default

Include consul-docker in your run_list.

  "run_list": [


Attribute Description Type Default
node['consul-docker']['config'] Hash of configuration environment variables for Consul. Primary way to configure how consul starts. See consul docker image and consul configuration file docs for more information. See [.kitchen.yml](.kitchen.yml) for examples of using this to drive behavior. Hash nil
node['consul-docker']['entrypoint'] Start the consul container with your own entrypoint. Must be added as volume to container. String nil
node['consul-docker']['port'] Port(s) to expose from docker container. See docker cookbook for more info. Array ['8300', '8301', '8302', '8400', '8500', '8600']
node['consul-docker']['repo'] The docker repo for the image to use String 'consul'
node['consul-docker']['tag'] The docker tag for the image to use String '0.8.3'
node['consul-docker']['sensitive'] Whether to consider container resource sensitive or not Boolean false
node['consul-docker']['vault']['bag'] Vault bag to use for secrets String nil
node['consul-docker']['vault']['items'] Vault items to load into config Array nil
node['consul-docker']['volumes'] Volumes to have added to your container Array nil

ACL Configuration

The [.kitchen.yml](.kitchen.yml) has an example of setting up ACLs. More info
can be found at the ACL System Docs.

Currently this can't be totally automated to work with default deny policy.
This is documented at and
manual steps required at

TLS Configuration

The [.kitchen.yml](.kitchen.yml) has an example of setting up TLS for encyption.
More info cab be found at the Encryption Docs.


  • Linting - Cookstyle and Foodcritic
  • Spec - ChefSpec
  • Integration - Test Kitchen

Testing requires ChefDK be installed using it's native gems.

foodcritic -f any -X spec .
rspec --color --format progress

If you run into issues testing please first remove any additional gems you may
have installed into your ChefDK environment. Extra gems can be found and removed
at ~/.chefdk/gem.

License and Authors

Author:: Jacob McCann (

Copyright:: 2017, Jacob McCann

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

jmccann-docker-host ~> 3.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


  • Fix loading/merging of secrets into CONSUL_LOCAL_CONFIG


  • Add ability to load config items from vault


  • Initial Release

Collaborator Number Metric

0.3.1 failed this metric

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

Contributing File Metric

0.3.1 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.3.1 failed this metric

FC067: Ensure at least one platform supported in metadata: consul-docker/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

0.3.1 passed this metric

No Binaries Metric

0.3.1 passed this metric

Testing File Metric

0.3.1 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.3.1 passed this metric