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


redirects (2) Versions 0.1.0

Installs/Configures redirects

cookbook 'redirects', '= 0.1.0', :supermarket
cookbook 'redirects', '= 0.1.0'
knife supermarket install redirects
knife supermarket download redirects
Quality 71%

Build Status License

Redirects Cookbook

This cookbook provides a servers Debian/Ubuntu 16.04 or 14.04 with webserver Apache and set ups of the of URL redirects in your structure.


This cookbook has some dependencies.

  • cookbook 'apache2', '~> 5.0.1'


  • Chef 12.7+


  • Ubuntu 14.04 and 16.04


That dependencies it's gonna be resolved by berkshelf using CHEF supermaket.

Before run this recipe you need run berks for download and install dependencies

berks vendor 

Chefdk is required.


This cookbook set ups redirects of URL in your structure with webserver Apache, just make the recipe include.

include_recipe 'redirects'

In your data_bags directory is necessary create a directory with the name "redirects", for example and the create a file vhost-example.json and set de ENVIRONMENT of the your structure.

  "id": "vhost-example",
  "_default": {
    "": {
      "docroot": "/var/www/html",
      "log_level": "warn",
      "server_admin": "",
      "server_alias": "",
      "redir": [
        "RedirectMatch 301 /(.*)"
  "tag": "redirects"
  • You need a Public IP or Load Balancer to service these redirects servers.

  • It will be necessary to add or change in your DNS the URL address for 'Type A' Public IP or 'Type CNAME' Load Balancer for the request to be forwarded to the server that will handle the redirect.


Set the data_bag name and tag name, for example:

  • default['redirects']['data_bag']['name'] - Default 'redirects'
  • default['redirects']['data_bag']['tag'] - Default 'redirects'

Dependent cookbooks

apache2 ~> 5.0.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

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 passed this metric

License Metric

0.1.0 passed this metric

No Binaries Metric

0.1.0 passed this metric

Testing File Metric

0.1.0 passed this metric

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