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

The managed-automate2 cookbook has been deprecated

Author provided reason for deprecation:

The managed-automate2 cookbook has been deprecated and is no longer being maintained by its authors. Use of the managed-automate2 cookbook is no longer recommended.

You may find that the managed_automate cookbook is a suitable alternative.


managed-automate2 (1) Versions 0.8.0

Installs and configures a Chef Automate 2 server

cookbook 'managed-automate2', '~> 0.8.0', :supermarket
cookbook 'managed-automate2', '~> 0.8.0'
knife supermarket install managed-automate2
knife supermarket download managed-automate2
Quality 17%


Deploys and configures the Chef Automate 2 server in an airgapped, stateless model.



Installs or upgrades Chef Automate on a single airgapped box in a new deployment. The download the chef-automate commands before using this recipe (the airgap_bundle recipe does this) and copy it to the node['ma2']['aib']['dir'] directory. The AIB or upgrade file may be a URL or a file, similar to this:

node['ma2']['aib']['dir'] = '/tmp
node['ma2']['aib']['file'] = 'automate-20181112131523.aib'

The server will be tuned for passing Automate's preflight-check and swap will be disabled and the heapsize for Elasticsearch will be set to 1/2 total memory. The license may be referred as a URL or a string in an attribute. The recipe will attempt to restore if a backup file is specified in the attributes.


This recipe requires internet access and is used to create an airgap installation bundle (AIB file) from the "current" release channel. It copies the download AIB file to a destination directory with both the original filename and a generic filename for consistent installations (if desired). It will download a full AIB every run (currently 600 megabytes), so you may want to limit it to daily usage.


Runs chef-automate backup via cron and copies tarballs of the backups to a destination directory. The default is 2:30am daily, but you may change the cron schedule via the following attributes.

node['ma2']['backup']['cron']['minute'] = '30'
node['ma2']['backup']['cron']['hour'] = '2'
node['ma2']['backup']['cron']['day'] = '*'

This will probably get rewritten when the backup gateway is available.

Testing with Test Kitchen

The included .kitchen.yml provides testing scenarios for the following:

  • default: tests installing from a previously downloaded chef-automate and chef-automate-airgap.aib (use the aib suite to create this if necessary) to the shared test directory.
  • url: tests installing from a previously downloaded chef-automate-airgap.aib and license via URLs.
  • backup: install and configure backups.
  • restore: install from a backup .tgz.
  • aib: tests creating an airgap bundle for installing Automate offline. It writes chef-automate and chef-automate-airgap.aib to the shared test directory.
  • full: performs both the airgap bundle creation and installation.


The .kitchen.yml sets the VM to have the private IP If you want to use the Automate web UI, you will need to get the self-signed certificate created with the installation

  1. Use knife ssl fetch to pull the
  2. Install the certificate on your workstation. Under MacOS I used the Keychain Access application and did File->Import Items and selected the certificate. I then set the permissions to allow everything and deleted it when I destroyed the Vagrant machine.
  3. Connect to which will redirect to or one of the other suites. This works with Chrome, not Firefox.

You will probably need to update the license, directories and AIB files used for your testing. To use a license key, store it in your policyfiles/chef-automate2.rb similar to this:

override['ma2']['license']['string'] = 'thisisnotareallicence_dHlwZSI6ImNvbW1lcmNpYWwiLCJnZW5lcmF0b3IiOiJjaGVmL2xpY2Vuc2UtMi4wLjAiLCJrZXlfc2hhMjU2IjoiZTBkZjI4YzhiYzY4MTUwZWRiZmVmOThjZDZiN2RjNDM5YzFmODBjN2U3ZWY3NDc4OTNhNjg5M2EyZjdiNjBmNyIsImdlbmVyYXRpb25fZGF0ZSI6eyJzZWNvbmRzIjoxNTM0MzQ0MjkwfSwiY3VzdG9tZXIiOiJXZXN0cGFjQVUgLSBBdXRvbWF0ZSAtIE5ldyAtIDMwMDAgTm9kZXMiLCJjdXN0b21lcl9pZCI6Ijg4OEU4NUU3LTY2MUEtNEZGQS04MjlFLTNCRTIyREQyNEU4RCIsImN1c3RvbWVyX2lkX3ZlcnNpb24iOiIxIiwiZW50aXRsZW1lbnRzIjpbeyJuYW1lIjoiQ2hlZiBBdXRvbWF0ZSIsIm1lYXN1cmUiOiJub2RlcyIsInN0YXJ0Ijp7InNlY29uZHMiOjE1MzQyOTEyMDB9LCJlbmQiOnsic2Vjb25kcyI6MTU2NDYxNzU5OX19XX0.AMNR0uiRQgLsfi-W4dBQ5K6EH1HUSK_AFPSIXzzkEn1gAiLjgGwfB3L7oxxrihgV8w8U8Vsxeal_CGg5GI99le3FAYYt5wdCG-8VZNScVcyL8xCIdPUyl0ZV-NLjyhLzf5JKrl9E1dTBzMrh__OsNx34TgRLZ-xNKNekUAy9sVdyHryf'```

Dependent cookbooks

sysctl ~> 1.0.5

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

managed-automate2 CHANGELOG

This file is used to list changes made in each version of the managed-automate2 cookbook.


  • Initial release.
  • airgap_bundle downloads aib file
  • default recipe installs automate


  • default recipe configures to pass preflight check


  • default recipe applies license


  • relax Chef version to 13 from 14, adding sysctl cookbook


  • aib as a URL or a file in the default recipe
  • license as a URL or a string in the default recipe


  • Original AIB filename is now preserved in addition to generic name.
  • Add support for backup recipe and restoring from a backup file.


  • refactored install/restore/upgrade logic to manage upgrades


  • code cleanup and updated tests


  • added Elasticsearch tuning via the private _elasticsearch.rb recipe

Collaborator Number Metric

0.8.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.8.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.8.0 failed this metric

FC121: Cookbook depends on cookbook made obsolete by Chef 14: managed-automate2/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

0.8.0 passed this metric

Testing File Metric

0.8.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.8.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