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

RSS

redirect (19) Versions 1.5.1

Create Nginx host to redirect to another website

Policyfile
Berkshelf
Knife
cookbook 'redirect', '= 1.5.1', :supermarket
cookbook 'redirect', '= 1.5.1'
knife supermarket install redirect
knife supermarket download redirect
README
Dependencies
Changelog
Quality 50%

redirect-cookbook

Chef cookbook
license

Create Nginx host to redirect to another website

Usage

Resource

redirect_host 'www.domain.tld' do
  target 'domain.tld'
  listen_ipv6 true  # listen on IPv6 address (default: true)
  default_server true  # include 'default_server' option in Nginx listen directive (default: false)
  secure true  # redirect to HTTPS (default: true)
  permanent false  # either 301 or 302 HTTP code (default: false)
  pass_request_uri true  # redirect with path and arguments (default: false)
  access_log_options 'off'  # Nginx access_log options string (default: 'combined', use 'off' to disable access_log)
  error_log_options 'crit'  # Nginx error_log level (default: 'error')
end

Recipe

Add recipe[redirect::default] to your run list and specify redirect hosts in node attributes:

{
  "redirect": {
    "hosts": [
      {
        "fqdn": "www.domain.tld",
        "target": "domain.tld",
        "listen_ipv6": true,
        "default_server": true,
        "secure": true,
        "permanent": false,
        "pass_request_uri": true,
        "access_log_options": "off",
        "error_log_options": "crit"
      }
    ]
  }
}

License

MIT @ Alexander Pyatkin

Dependent cookbooks

nginx >= 0.0.0
tls ~> 3.1.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

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

The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.

[1.5.0] - 2019-01-04

Removed

  • HPKP Header will no longer be set.
  • Deleted the redirect_host resource property: ec_certificates.

[1.4.3] - 2018-12-17

Added

  • Introduced a new redirect_host resource property: default_server.

[1.4.2] - 2018-12-13

Added

  • Introduced a new redirect_host resource property: access_log_options.
  • Introduced a new redirect_host resource property: error_log_options.

[1.4.1] - 2018-10-14

Fixed

  • Chef 14 compatibility.

[1.4.0] - 2018-08-17

Added

  • Create a CHANGELOG.

Collaborator Number Metric
            

1.5.1 failed this metric

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

Contributing File Metric
            

1.5.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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.5.1 passed this metric

No Binaries Metric
            

1.5.1 passed this metric

Testing File Metric
            

1.5.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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.5.1 passed this metric