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 4.1.0

Create Nginx host to redirect to another website

Policyfile
Berkshelf
Knife
cookbook 'redirect', '~> 4.1.0', :supermarket
cookbook 'redirect', '~> 4.1.0'
knife supermarket install redirect
knife supermarket download redirect
README
Dependencies
Changelog
Quality 17%

redirect-cookbook

Chef cookbook
license

Create Nginx host to redirect to another website. Makes use of ngx cookbook under the hood.

Usage

Resource

redirect_host 'www.domain.tld' do
  target 'domain.tld'  # host to redirect to (REQUIRED)
  path '/hello'  # path to redirect to (default: '')
  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)
  ocsp_stapling true  # when secure is enabled, enable OCSP stapling (default: true)
  resolvers %w(8.8.8.8 1.1.1.1)  # when secure and ocsp_stapling are enabled, set up resolvers (default: Google and CloudFlare DNS servers)
  resolver_valid 300  # cache name resolution results for the specified number of seconds (default: 600)
  resolver_timeout 5  # set timeout for the name resolution (default: 10)
  resolver_ipv6 true  # look up both IPv4 and IPv6 addresses while resolving (default: false)
  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

License

MIT @ Alexander Pyatkin

Dependent cookbooks

ngx ~> 2.2
tls ~> 4.1

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.

[4.1.0] - 2022-07-03

Changed

  • Support Chef 16.

[4.0.0] - 2021-02-05

Changed

  • Renamed redirect_host resource property oscp_stapling to ocsp_stapling.

[3.1.0] - 2020-11-11

Added

  • Introduced a new redirect_host resource property: vlt_format.

Changed

  • Update tls dependency to version 4.1.

[3.0.0] - 2020-09-28

Added

  • Introduced a new redirect_host resource property: vlt_provider.

Changed

  • Update tls dependency to version 4.

[2.1.1] - 2019-07-23

Added

  • Introduced a new redirect_host resource property: resolver_ipv6.

[2.1.0] - 2019-04-14

Changed

  • Make use of an updated version of tls cookbook.

[2.0.0] - 2019-04-10

Changed

  • Make use of ngx cookbook under the hood.

Removed

  • Deleted the default recipe.

[1.6.0] - 2019-01-10

Added

  • Introduced a new redirect_host resource property: path.
  • Introduced a new redirect_host resource property: hsts_max_age.
  • Introduced a new redirect_host resource property: oscp_stapling.
  • Introduced a new redirect_host resource property: resolvers.
  • Introduced a new redirect_host resource property: resolver_valid.
  • Introduced a new redirect_host resource property: resolver_timeout.

Removed

  • Deleted node['redirect']['hsts_max_age'].
  • Static CT entries will no longer be configured.

[1.5.1] - 2019-01-05

Fixed

  • Fixed the default recipe.

[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
            

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

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

Cookstyle Metric
            

4.1.0 failed this metric

Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): redirect/resources/redirect.rb: 1
Chef/Modernize/RespondToInMetadata: It is no longer necessary to use respond_to? or defined? in metadata.rb in Chef Infra Client 12.15 and later (https://docs.chef.io/workstation/cookstyle/chef_modernize_respondtoinmetadata): redirect/metadata.rb: 10
Chef/Modernize/RespondToInMetadata: It is no longer necessary to use respond_to? or defined? in metadata.rb in Chef Infra Client 12.15 and later (https://docs.chef.io/workstation/cookstyle/chef_modernize_respondtoinmetadata): redirect/metadata.rb: 11
Chef/RedundantCode/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata): redirect/metadata.rb: 6

Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations

No Binaries Metric
            

4.1.0 passed this metric

Testing File Metric
            

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

Version Tag Metric
            

4.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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number