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 chef_nginx cookbook has been deprecated

Author provided reason for deprecation:

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

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

RSS

chef_nginx (29) Versions 3.0.0

Installs and configures nginx

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

nginx Cookbook

Cookbook Build Status

Installs nginx from package OR source code and sets up configuration handling similar to Debian's Apache2 scripts.

nginx vs. chef_nginx

This cookbook is a fork from the 2.7.x branch of the community nginx cookbook. This branch will be actively supported by Chef Software.

We will continue to migrate the cookbook to a more resource driven model, with incremental changes that are non-breaking when possible.

If this cookbook is eventually merged into the nginx namespace on the supermarket, this chef_nginx cookbook will receive updates in parallel (mirroring) in order to minimize disruption to users that have adopted this cookbook.

Requirements

Cookbooks

The following cookbooks are direct dependencies because they're used for common "default" functionality.

  • apt for setting up the Nginx.org repository on Debian/Ubuntu platforms
  • build-essential for source installations
  • ohai for setting up the ohai plugin
  • runit for source installs
  • yum for setting up the Nginx.org repository on RHEL platforms
  • yum-epel for setting up the EPEL repository on RHEL platforms
  • zypper for setting up the Nginx.org repository on Suse platforms

Platforms

The following platforms are supported and tested with Test Kitchen:

  • Ubuntu 12.04+
  • CentOS 5+
  • Debian 7+
  • openSUSE 13.2+

Other Debian and RHEL family distributions are assumed to work.

Chef

  • Chef 12.1+

Attributes

Node attributes for this cookbook are logically separated into different files. Some attributes are set only via a specific recipe.

default

Generally used attributes. Some have platform specific values. See attributes/default.rb. "The Config" refers to "nginx.conf" the main config file.

  • node['nginx']['dir'] - Location for Nginx configuration.
  • node['nginx']['conf_template'] - The source template to use when creating the nginx.conf.
  • node['nginx']['conf_cookbook'] - The cookbook where node['nginx']['conf_template'] resides.
  • node['nginx']['log_dir'] - Location for Nginx logs.
  • node['nginx']['log_dir_perm'] - Permissions for Nginx logs folder.
  • node['nginx']['user'] - User that Nginx will run as.
  • node['nginx']['group] - Group for Nginx.
  • node['nginx']['port'] - Port for nginx to listen on.
  • node['nginx']['binary'] - Path to the Nginx binary.
  • node['nginx']['init_style'] - How to run Nginx as a service when using chef_nginx::source. Values can be "runit", "upstart", or "init". When using runit that recipes will be included as well. Recipes are not included for upstart, it is assumed that upstart is built into the platform you are using (ubuntu). This attribute is not used in the nginx recipe because the package manager's init script style for the platform is assumed. Upstart is never set as a default as this represents a change in behavior, if you are running ubuntu or el6 and want to use upstart, please set this attribute in a role or similar.
  • node['nginx']['upstart']['foreground'] - Set this to true if you want upstart to run nginx in the foreground, set to false if you want upstart to detach and track the process via pid.
  • node['nginx']['upstart']['runlevels'] - String of runlevels in the format '2345' which determines which runlevels nginx will start at when entering and stop at when leaving.
  • node['nginx']['upstart']['respawn_limit'] - Respawn limit in upstart stanza format, count followed by space followed by interval in seconds.
  • node['nginx']['pid'] - Location of the PID file.
  • node['nginx']['keepalive'] - Whether to use keepalive_timeout, any value besides "on" will leave that option out of the config.
  • node['nginx']['keepalive_requests'] - used for config value of keepalive_requests.
  • node['nginx']['keepalive_timeout'] - used for config value of keepalive_timeout.
  • node['nginx']['worker_processes'] - used for config value of worker_processes.
  • node['nginx']['worker_connections'] - used for config value of events { worker_connections }
  • node['nginx']['worker_rlimit_nofile'] - used for config value of worker_rlimit_nofile. Can replace any "ulimit -n" command. The value depend on your usage (cache or not) but must always be superior than worker_connections.
  • node['nginx']['multi_accept'] - used for config value of events { multi_accept }. Try to accept() as many connections as possible. Disable by default.
  • node['nginx']['event'] - used for config value of events { use }. Set the event-model. By default nginx looks for the most suitable method for your OS.
  • node['nginx']['accept_mutex_delay'] - used for config value of accept_mutex_delay
  • node['nginx']['server_tokens'] - used for config value of server_tokens.
  • node['nginx']['server_names_hash_bucket_size'] - used for config value of server_names_hash_bucket_size.
  • node['nginx']['disable_access_log'] - set to true to disable the general access log, may be useful on high traffic sites.
  • node['nginx']['access_log_options'] - Set to a string of additional options to be appended to the access log directive
  • node['nginx']['error_log_options'] - Set to a string of additional options to be appended to the error log directive
  • node['nginx']['default_site_enabled'] - enable the default site
  • node['nginx']['sendfile'] - Whether to use sendfile. Defaults to "on".
  • node['nginx']['tcp_nopush'] - Whether to use tcp_nopush. Defaults to "on".
  • node['nginx']['tcp_nodelay'] - Whether to use tcp_nodelay. Defaults to "on".
  • node['nginx']['install_method'] - Whether nginx is installed from packages or from source.
  • node['nginx']['types_hash_max_size'] - Used for the types_hash_max_size configuration directive.
  • node['nginx']['types_hash_bucket_size'] - Used for the types_hash_bucket_size configuration directive.
  • node['nginx']['proxy_read_timeout'] - defines a timeout (between two successive read operations) for reading a response from the proxied server.
  • node['nginx']['client_body_buffer_size'] - used for config value of client_body_buffer_size.
  • node['nginx']['client_max_body_size'] - specifies the maximum accepted body size of a client request, as indicated by the request header Content-Length.
  • node['nginx']['repo_source'] - when installed from a package this attribute affects which yum repositories, if any, will be added before installing the nginx package. The default value of 'epel' will use the yum-epel cookbook, 'nginx' will use the chef_nginx::repo recipe, 'passenger' will use the 'chef_nginx::repo_passenger' recipe, and setting no value will not add any additional repositories.
  • node['nginx']['sts_max_age'] - Enable Strict Transport Security for all apps (See: http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security). This attribute adds the following header:

Strict-Transport-Security max-age=SECONDS

to all incoming requests and takes an integer (in seconds) as its argument.

  • node['nginx']['default']['modules'] - Array specifying which modules to enable via the conf-enabled config include function. Currently the only valid value is "socketproxy".

Other configurations

  • node['nginx']['extra_configs'] - a Hash of key/values to nginx configuration.

Rate Limiting

  • node['nginx']['enable_rate_limiting'] - set to true to enable rate limiting (limit_req_zone in nginx.conf)
  • node['nginx']['rate_limiting_zone_name'] - sets the zone in limit_req_zone.
  • node['nginx']['rate_limiting_backoff'] - sets the backoff time for limit_req_zone.
  • node['nginx']['rate_limit'] - set the rate limit amount for limit_req_zone.

gzip module

  • node['nginx']['gzip'] - Whether to use gzip, can be "on" or "off"
  • node['nginx']['gzip_http_version'] - used for config value of gzip_http_version.
  • node['nginx']['gzip_comp_level'] - used for config value of gzip_comp_level.
  • node['nginx']['gzip_proxied'] - used for config value of gzip_proxied.
  • node['nginx']['gzip_vary'] - used for config value of gzip_vary.
  • node['nginx']['gzip_buffers'] - used for config value of gzip_buffers.
  • node['nginx']['gzip_types'] - used for config value of gzip_types - must be an Array.
  • node['nginx']['gzip_min_length'] - used for config value of gzip_min_length.
  • node['nginx']['gzip_disable'] - used for config value of gzip_disable.
  • node['nginx']['gzip_static'] - used for config value of gzip_static (http_gzip_static_module must be enabled)

### Attributes set in recipes

chef_nginx::source

  • node['nginx']['daemon_disable'] - Whether the daemon should be disabled which can be true or false; disable the daemon (run in the foreground) when using a service supervisor such as runit for "init_style". This is automatically set in the chef_nginx::source recipe when the init style is not runit.

chef_nginx::authorized_ips

  • node['nginx']['remote_ip_var'] - The remote ip variable name to use.
  • node['nginx']['authorized_ips'] - IPs authorized by the module

chef_nginx::http_realip_module

From: http://nginx.org/en/docs/http/ngx_http_realip_module.html

  • node['nginx']['realip']['header'] - Header to use for the RealIp Module; only accepts "X-Forwarded-For" or "X-Real-IP"
  • node['nginx']['realip']['addresses'] - Addresses to use for the http_realip configuration.
  • node['nginx']['realip']['real_ip_recursive'] - If recursive search is enabled, the original client address that matches one of the trusted addresses is replaced by the last non-trusted address sent in the request header field. Can be on "on" or "off" (default).

source

These attributes are used in the chef_nginx::source recipe. Some of them are dynamically modified during the run. See attributes/source.rb for default values.

  • node['nginx']['source']['url'] - (versioned) URL for the Nginx source code. By default this will use the version specified as node['nginx']['version'].
  • node['nginx']['source']['prefix'] - (versioned) prefix for installing nginx from source
  • node['nginx']['source']['conf_path'] - location of the main config file, in node['nginx']['dir'] by default.
  • node['nginx']['source']['modules'] - Array of modules that should be compiled into Nginx by including their recipes in chef_nginx::source.
  • node['nginx']['source']['default_configure_flags'] - The default flags passed to the configure script when building Nginx.
  • node['nginx']['configure_flags'] - Preserved for compatibility and dynamically generated from the node['nginx']['source']['default_configure_flags'] in the chef_nginx::source recipe.
  • node['nginx']['source']['use_existing_user'] - set to true if you do not want chef_nginx::source recipe to create system user with name node['nginx']['user'].

geoip

These attributes are used in the chef_nginx::http_geoip_module recipe. Please note that the country_dat_checksum and city_dat_checksum are based on downloads from a datacenter in Fremont, CA, USA. You really should override these with checksums for the geo tarballs from your node location.

Note The upstream, maxmind.com, may block access for repeated downloads of the data files. It is recommended that you download and host the data files, and change the URLs in the attributes.

  • node['nginx']['geoip']['path'] - Location where to install the geoip libraries.
  • node['nginx']['geoip']['enable_city'] - Whether to enable City data
  • node['nginx']['geoip']['country_dat_url'] - Country data tarball URL
  • node['nginx']['geoip']['country_dat_checksum'] - Country data tarball checksum
  • node['nginx']['geoip']['city_dat_url'] - City data tarball URL
  • node['nginx']['geoip']['city_dat_checksum'] - City data tarball checksum
  • node['nginx']['geoip']['lib_version'] - Version of the GeoIP library to install
  • node['nginx']['geoip']['lib_url'] - (Versioned) Tarball URL of the GeoIP library
  • node['nginx']['geoip']['lib_checksum'] - Checksum of the GeoIP library tarball

upload_progress

These attributes are used in the chef_nginx::upload_progress_module recipe.

  • node['nginx']['upload_progress']['url'] - URL for the tarball.
  • node['nginx']['upload_progress']['checksum'] - Checksum of the tarball.
  • node['nginx']['upload_progress']['javascript_output'] - Output in javascript. Default is true for backwards compatibility.
  • node['nginx']['upload_progress']['zone_name'] - Zone name which will be used to store the per-connection tracking information. Default is proxied.
  • node['nginx']['upload_progress']['zone_size'] - Zone size in bytes. Default is 1m (1 megabyte).

passenger

These attributes are used in the chef_nginx::passenger recipe.

  • node['nginx']['passenger']['version'] - passenger gem version
  • node['nginx']['passenger']['root'] - passenger gem root path
  • node['nginx']['passenger']['install_rake'] - set to false if rake already present on system
  • node['nginx']['passenger']['max_pool_size'] - maximum passenger pool size (default=10)
  • node['nginx']['passenger']['ruby'] - Ruby path for Passenger to use (default=$(which ruby))
  • node['nginx']['passenger']['spawn_method'] - passenger spawn method to use (default=smart-lv2)
  • node['nginx']['passenger']['buffer_response'] - turns on or off response buffering (default=on)
  • node['nginx']['passenger']['max_pool_size'] - passenger maximum pool size (default=6)
  • node['nginx']['passenger']['min_instances'] - minimum instances (default=1)
  • node['nginx']['passenger']['max_instances_per_app'] - maximum instances per app (default=0)
  • node['nginx']['passenger']['pool_idle_time'] - passenger pool idle time (default=300)
  • node['nginx']['passenger']['max_requests'] - maximum requests (default=0)
  • node['nginx']['passenger']['nodejs'] - Nodejs path for Passenger to use (default=nil)

Basic configuration to use the official Phusion Passenger repositories:

  • node['nginx']['repo_source'] - 'passenger'
  • node['nginx']['package_name'] - 'nginx-extras'
  • node['nginx']['passenger']['install_method'] - 'package'

echo

These attributes are used in the chef_nginx::http_echo_module recipe.

  • node['nginx']['echo']['version'] - The version of http_echo you want (default: 0.59)
  • node['nginx']['echo']['url'] - URL for the tarball.
  • node['nginx']['echo']['checksum'] - Checksum of the tarball.

status

These attributes are used in the chef_nginx::http_stub_status_module recipe.

  • node['nginx']['status']['port'] - The port on which nginx will serve the status info (default: 8090)

syslog

These attributes are used in the chef_nginx::syslog_module recipe.

  • node['nginx']['syslog']['git_repo'] - The git repository url to use for the syslog patches.
  • node['nginx']['syslog']['git_revision'] - The revision on the git repository to checkout.

openssl_source

These attributes are used in the chef_nginx::openssl_source recipe.

  • node['nginx']['openssl_source']['version'] - The version of OpenSSL you want to download and use (default: 1.0.1t)
  • node['nginx']['openssl_source']['url'] - The url for the OpenSSL source

socketproxy.rb

These attributes are used in the chef_nginx::socketproxy recipe.

  • node['nginx']['socketproxy']['root'] - The directory (on your server) where socketproxy apps are deployed.
  • node['nginx']['socketproxy']['default_app'] - Static assets directory for requests to "/" that don't meet any proxy_pass filter requirements.
  • node['nginx']['socketproxy']['apps']['app_name']['prepend_slash'] - Prepend a slash to requests to app "app_name" before sending them to the socketproxy socket.
  • node['nginx']['socketproxy']['apps']['app_name']['context_name'] - URI (e.g. "app_name" in order to achieve "http://mydomain.com/app_name") at which to host the application "app_name"
  • node['nginx']['socketproxy']['apps']['app_name']['subdir'] - Directory (under node['nginx']['socketproxy']['root']) in which to find the application.

Recipes

This cookbook provides three main recipes for installing Nginx.

  • default.rb - Use this recipe if you have a native package for Nginx.
  • repo.rb - The developer of Nginx also maintain stable packages for several platforms.
  • source.rb - Use this recipe if you do not have a native package for Nginx, or if you want to install a newer version than is available, or if you have custom module compilation needs.

Several recipes are related to the source recipe specifically. See that recipe's section below for a description.

default

The default recipe will install Nginx as a native package for the system through the package manager and sets up the configuration according to the Debian site enable/disable style with sites-enabled using the nxensite and nxdissite scripts. The nginx service will be managed with the normal init scripts that are presumably included in the native package.

Includes the ohai_plugin recipe so the plugin is available.

socketproxy

This will add socketproxy support to your nginx proxy setup. Do not include this recipe directly. Instead, add it to the node['nginx']['default']['modules'] array (see below).

ohai_plugin

This recipe provides an Ohai plugin as a template. It is included by both the default and source recipes.

authorized_ips

Sets up configuration for the authorized_ip nginx module.

source

This recipe is responsible for building Nginx from source. It ensures that the required packages to build Nginx are installed (pcre, openssl, compile tools). The source will be downloaded from the node['nginx']['source']['url']. The node['nginx']['user'] will be created as a system user. If you want to use existing user set node['nginx']['source']['use_existing_user'] to true. The appropriate configuration and log directories and config files will be created as well according to the attributes node['nginx']['dir'] and node['nginx']['log_dir'].

The recipe attempts to detect whether additional modules should be added to the configure command through recipe inclusion (see below), and whether the version or configuration flags have changed and should trigger a recompile.

The nginx service will be set up according to node['nginx']['init_style']. Available options are:

  • runit: uses runit cookbook and sets up runit_service.
  • anything else (e.g., "init") will use the nginx init script template.

RHEL/CentOS This recipe should work on RHEL/CentOS with "init" as the init style.

The following recipes are used to build module support into Nginx. To use a module in the chef_nginx::source recipe, add its recipe name to the attribute node['nginx']['source']['modules'].

  • ipv6.rb - enables IPv6 support
  • http_echo_module.rb - downloads the http_echo_module module and enables it as a module when compiling nginx.
  • http_geoip_module.rb - installs the GeoIP libraries and data files and enables the module for compilation.
  • http_gzip_static_module.rb - enables the module for compilation. Be sure to set node['nginx']['gzip_static'] = 'yes'.
  • http_perl_module.rb - enables embedded Perl for compilation.
  • http_realip_module.rb - enables the module for compilation and creates the configuration.
  • http_ssl_module.rb - enables SSL for compilation.
  • http_stub_status_module.rb - provides nginx_status configuration and enables the module for compilation.
  • naxsi_module - enables the naxsi module for the web application firewall for nginx.
  • passenger - builds the passenger gem and configuration for "mod_passenger".
  • syslog - enables syslog support for nginx. This only works with source builds. See https://github.com/yaoweibin/nginx_syslog_patch
  • upload_progress_module.rb - builds the upload_progress module and enables it as a module when compiling nginx.
  • openssl_source.rb - downloads and uses custom OpenSSL source when compiling nginx

Definitions

nginx_site

Enable or disable a Server Block in #{node['nginx']['dir']}/sites-available by calling nxensite or nxdissite (introduced by this cookbook) to manage the symbolic link in #{node['nginx']['dir']}/sites-enabled.

Parameters:

  • name - Name of the site.
  • enable - Default true, which uses nxensite to enable the site. If false, the site will be disabled with nxdissite.
  • template - (optional) Path to the source for the template resource.
  • variables - (optional) Variables to be used with the template resource

Adding New Modules

To add a new module to be compiled into nginx in the source recipe, the node's run state is manipulated in a recipe, and the module as a recipe should be added to node['nginx']['source']['modules']. For example:

node.run_state['nginx_configure_flags'] =
  node.run_state['nginx_configure_flags'] | ['--with-http_stub_status_module']

The recipe will be included by recipe[chef_nginx::source] automatically, adding the configure flags. Add any other configuration templates or other resources as required. See the recipes described above for examples.

Ohai Plugin

The ohai_plugin recipe includes an Ohai plugin. It will be automatically installed and activated, providing the following attributes via ohai, no matter how nginx is installed (source or package):

  • node['nginx']['version'] - version of nginx
  • node['nginx']['configure_arguments'] - options passed to ./configure when nginx was built
  • node['nginx']['prefix'] - installation prefix
  • node['nginx']['conf_path'] - configuration file path

In the source recipe, it is used to determine whether control attributes for building nginx have changed.

Usage

Include the recipe on your node or role that fits how you wish to install Nginx on your system per the recipes section above. Modify the attributes as required in your role to change how various configuration is applied per the attributes section above. In general, override attributes in the role should be used when changing attributes.

There's some redundancy in that the config handling hasn't been separated from the installation method (yet), so use only one of the recipes, default or source.

License & Authors

Copyright 2008-2016, Chef Software, Inc

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

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

apt >= 2.9.1
build-essential >= 0.0.0
ohai >= 4.1.0
runit >= 1.6.0
yum >= 0.0.0
yum-epel >= 0.0.0
zypper >= 0.0.0

Contingent cookbooks

archiva Applicable Versions
drone Applicable Versions
grafana Applicable Versions
kloudspeaker Applicable Versions
maven-deploy Applicable Versions
nagios Applicable Versions
nginx-hardening Applicable Versions
nginx-wrapper Applicable Versions
nginx_simplecgi Applicable Versions
nodejs-deploy Applicable Versions
opsworks_ruby Applicable Versions
postfixadmin Applicable Versions
redirect Applicable Versions
reprepro Applicable Versions
stackstorm Applicable Versions
zabbix_lwrp Applicable Versions

nginx Cookbook CHANGELOG

This file is used to list changes made in each version of the nginx cookbook.

3.0.0 (2016-08-18)

Breaking changes

Ideally we'd offer perfect backwards compatibility forever, but in order to maintain the cookbook going forward we've evaluated the current scope of the cookbook and removed lesser used functionality that added code complexity.

  • The minimum chef-client version is now 12.1 or later, which will enable support for custom resources and init system detection in the future.
  • Support for Gentoo has been removed. Gentoo is not a supported platform on Chef and there is no Bento image to use for Test Kitchen integration tests.
  • Support for the bluepill init system has been removed. Usage of this init system has declined, and supporting it added a cookbook dependency as well as code complexity.
  • Ubuntu source installs will no longer default to runit, and will instead use either Upstart or Systemd depending on the release of Ubuntu. You can still force the use of runit by setting default['nginx']['init_style'] to 'runit'. Runit was used historically before reliable init systems were shipped with Ubuntu. Both Upstart and Systemd have the concept of restarting on failure, which was the main reason for choosing Runit over sys-v init.

Other changes

  • Don't setup the YUM EPEL repo on Fedora as it's not needed
  • Systemd based platforms will now use systemd by default for source installs
  • Retry downloads of the nginx source file as the mirror sometimes fails to load
  • Download the nginx source from the secure nginx.org site
  • Updated the Ohai plugin to avoid deprecation notices and function better on non us-en locale systems
  • Install source install pre-reqs using multi-package which speeds up Chef runs
  • Add testing in Travis with Kitchen Dokken for full integration testing of each PR
  • Add integration test on Chef 12.1 as well as the latest Chef to ensure compatibility with the oldest release we support
  • Remove installation of apt-transport-https and instead increase the apt dependency to >= 2.9.1 which includes the installation of apt-transport-https
  • Don't try to setup the nginx.org repo on Fedora as this will fail
  • Better log when trying to setup repositories on unsupported platforms
  • Fixed source_url and issue_url in the metadata to point to the correct URLs
  • Removed Chef 10 compatibility code
  • Chefspec platform updates and minor fixes
  • Replace all usage of node.set with node.normal to avoid deprecation notices
  • Remove the suse init script that isn't used anymore
  • Speed up the specs with caching
  • Move test attributes and runlists out the kitchen.yml files and into a test cookbook

2.9.0 (2016-08-12)

  • Add support for Suse Nginx.org packages

v2.8.0 (2016-08-12)

This is the first release of the nginx codebase under the chef_nginx namespace. We've chosen to bring this cookbook under the direction of the Community Cookbook Team, in order to ship a working 2.X release. The cookbook name has been changed, but all attributes are the same and compatibility has been maintained. After this 2.8.0 release we will release 3.0 as a Chef 12+ version of the cookbook and then work to add additional custom resources for managing nginx with wrapper cookbooks. Expect regular releases as we march towards a resource driven model.

  • Removed the restrictive version constraints for cookbook dependencies that prevented users from utilizing new functionality. Ohai has been pinned to < 4.0 to allow for Chef 11 compatibility, but other cookbooks have no upper limit
  • Updated all modules in the source install to their latest releases
  • Removed the GeoIP database checksums as these files are constantly updates and this causes Chef run failures
  • Updated OpenSSL for source installs to 1.0.1t
  • Updated the source install of Nginx to version 1.10.1
  • Updated the ohai recipe to install a Ohai 7+ compatible plugin on systems running Ohai 7+
  • Fixed installation of Passenger version 5.X+
  • Added a http_v2_module recipe
  • Replaced node.set usage with node.normal to avoid deprecation warnings
  • Removed the apt version pin in the Berkfile that wasn't necessary and constrained the apt version
  • Removed the lua-devel package install from the lua recipe that failed chef runs and wasn't necessary
  • Removed duplicate packages from the source module installs
  • Added a dependency on the yum cookbook which was missing from the metadata
  • Updated the mime.types file and added the charset_types configuration option to the nginx config
  • Added source_url, issue_url, and chef_version metadata
  • Fixed the pid file attribute logic for Ubuntu 16.04
  • Removed the Contributing doc that was for contributing to Opscode cookbooks
  • Updated all test dependencies in the Gemfile
  • Removed default user/group/mode declarations from resources for simplicity
  • Updated documentation for dependencies in the README
  • Added a chefignore file to limit the cookbook files that are uploaded to the chef server and speed up cookbook syncs to nodes
  • Added additional platforms to the Test Kitchen config and removed the .kitchen.cloud.yml file
  • Switched integration tests to Inspec and fixed several non-functional tests
  • Switched from Rubocop to Cookstyle and resolved all warnings
  • Added the standard Chef Rakefile for simplified testing
  • Updated Chefspecs to avoid constant deprecation warnings and converge using chef-zero on a newer Debian 8 system
  • Switch Travis CI testing to use ChefDK instead of RVM/Gem installs
  • Removed testing dependencies from the Gemfile as testing should be performed via ChefDK. Release gems are still in the Gemfile as they are not shipped with ChefDK
  • Added a maintainers.md doc and updated the contributing/testing docs to point to the Chef docs
  • Removed Guard as guard-foodcritic doesn't support the latest release which makes guard incompatible with ChefDK

v2.7.6 (2015-03-17)

  • Bugfix sites do not need a .conf suffix anymore, #338

v2.7.5 (2015-03-17)

NOTE As of this release, this cookbook in its current format is deprecated, and only critical bugs and fixes will be added. A complete rewrite is in progress, so we appreciate your patience while we sort things out. The amount of change included here

  • Fix nginx 1.4.4 archive checksum to prevent redownload, #305
  • Allow setting an empty string to prevent additional repos, #243
  • Use correct mime.types for javascript, #259
  • Fix headers_more module for source installs, #279, @josh-padnick & @miketheman
  • Remove libtool from geoip and update download paths & checksums, @miketheman
  • Fix unquoted URL with params failing geoip module build (and tests!), #294 & @miketheman
  • Fix typo in source.rb, #205
  • Test updates: ChefSpec, test-kitchen. Lots of help by @jujugrrr
  • Toolchain updates for testing
  • Adds support for tcp_nopush, tcp_nodelay @shtouff

After merging a ton of pull requests, here's a brief changelog. Click each to read more.

https://github.com/miketheman/nginx/compare/v2.7.4...v2.7.5

v2.7.4 (2014-06-06)

  • [COOK-4703] Default openssl version to 1.0.1h to address CVE-2014-0224

v2.7.2 (2014-05-27)

  • [COOK-4658] - Nginx::socketproxy if the context is blank or nonexistent, the location in the config file has a double slash at the beginning
  • [COOK-4644] - add support to nginx::repo for Amazon Linux
  • Allow .kitchen.cloud.yml to use an environment variable for the EC2 Availability Zone

v2.7.0 (2014-05-15)

  • [COOK-4643] - Update metadata lock on ohai
  • [COOK-4588] - Give more love to FreeBSD
  • [COOK-4601] - Add proxy type: Socket

v2.6.2 (2014-04-09)

[COOK-4527] - set default openssl source version to 1.0.1g to address CVE-2014-0160 aka Heartbleed

v2.6.0 (2014-04-08)

  • Reverting COOK-4323

v2.5.0 (2014-03-27)

  • [COOK-4323] - Need a resource to easily configure available sites (vhosts)

v2.4.4 (2014-03-13)

  • Updating for build-essential 2.0

v2.4.2 (2014-02-28)

Fixing bad commit from COOK-4330

v2.4.1 (2014-02-27)

  • [COOK-4345] - nginx default recipe include install type recipe directly

v2.4.0 (2014-02-27)

  • [COOK-4380] - kitchen.yml platform listings for ubuntu-10.04 and ubuntu-12.04 are missing the dot
  • [COOK-4330] - Bump nginx version for security issues (CVE-2013-0337, CVE-2013-4547)

v2.3.0 (2014-02-25)

  • COOK-4293 - Update testing Gems in nginx and fix a rubocop warnings
  • **[COOK-4237] - Nginx version incorrectly parsed on Ubuntu 13
  • **[COOK-3866] - Nginx default site folder

v2.2.2 (2014-01-23)

[COOK-3672] - Add gzip_static option

v2.2.0

No changes. Version bump for toolchain

v2.1.0

[COOK-3923] - Enable the list of packages installed by nginx::passenger to be configurable [COOK-3672] - Nginx should support the gzip_static option Updating for yum ~> 3.0 Fixing up style for rubocop Updating test-kitchen harness

v2.0.8

fixing metadata version error. locking to 3.0

v2.0.6

Locking yum dependency to '< 3'

v2.0.4

Bug

  • COOK-3808 - nginx::passenger run fails because of broken installation of package dependencies
  • COOK-3779 - Build in master fails due to rubocop error

v2.0.2

Bug

  • COOK-3808 - nginx::passenger run fails because of broken installation of package dependencies
  • COOK-3779 - Build in master fails due to rubocop error

v2.0.0

Improvement

Bug

  • COOK-3686 - Remove deprecated 'passenger_use_global_queue' directive
  • COOK-3626 - Parameterize hardcoded path to helper scripts
  • COOK-3571 - Reloda ohai plugin after installation
  • COOK-3428 - Fix an issue where access logs are not disabled when the disable_access_log attribute is set to true
  • COOK-3322 - Fix an issue where nginx::ohai_plugin fails when using source recipe
  • COOK-3241 - Fix an issue wherenginx::ohai_plugin fails unless using source recipe

New Feature

v1.8.0

Bug

  • COOK-3397 - Fix user from nginx package on Gentoo
  • COOK-2968 - Fix foodcritic failure
  • COOK-2723 - Remove duplicate passenger max_pool_size

Improvement

  • COOK-3186 - Add client_body_buffer_size and server_tokens attributes
  • COOK-3080 - Add rate-limiting support
  • COOK-2927 - Add support for real_ip_recursive directive
  • COOK-2925 - Fix ChefSpec converge
  • COOK-2724 - Automatically create directory for PID file
  • COOK-2472 - Bump nginx version to 1.2.9
  • COOK-2312 - Add additional mine_types to the gzip_types value

New Feature

  • COOK-3183 - Allow inclusion in extra-cookbook modules

v1.7.0

Improvement

  • [COOK-3030]: The repo_source attribute should allow you to not add any additional repositories to your node

Sub-task

  • [COOK-2738]: move nginx::passenger attributes to nginx/attributes/passenger.rb

v1.6.0

Task

  • [COOK-2409]: update nginx::source recipe for new runit_service resource
  • [COOK-2877]: update nginx cookbook test-kitchen support to 1.0 (alpha)

Improvement

  • [COOK-1976]: nginx source should be able to configure binary path
  • [COOK-2622]: nginx: add upstart support
  • [COOK-2725]: add "configtest" subcommand in initscript

Bug

  • [COOK-2398]: nginx_site definition cannot be used to manage the default site
  • [COOK-2493]: Resources in nginx::source recipe always use 1.2.6 version, even overriding version attribute
  • [COOK-2531]: Remove usage of non-existant attribute "description" for apt_repository
  • [COOK-2665]: nginx::source install with custom sbin_path breaks ohai data

v1.4.0

  • [COOK-2183] - Install nginx package from nginxyum repo
  • [COOK-2311] - headers-more should be updated to the latest version
  • [COOK-2455] - Support sendfile option (nginx.conf)

v1.3.0

  • [COOK-1979] - Passenger module requires curl-dev(el)
  • [COOK-2219] - Support proxy_read_timeout (in nginx.conf)
  • [COOK-2220] - Support client_max_body_size (in nginx.conf)
  • [COOK-2280] - Allow custom timing of nginx_site's reload notification
  • [COOK-2304] - nginx cookbook should install 1.2.6 not 1.2.3 for source installs
  • [COOK-2309] - checksums for geoip files need to be updated in nginx
  • [COOK-2310] - Checksum in the nginx::upload_progress recipe is not correct
  • [COOK-2314] - nginx::passenger: Install the latest version of passenger
  • [COOK-2327] - nginx: passenger recipe should find ruby via Ohai
  • [COOK-2328] - nginx: Update mime.types file to the latest
  • [COOK-2329] - nginx: Update naxsi rules to the current

v1.2.0

  • [COOK-1752] - Add headers more module to the nginx cookbook
  • [COOK-2209] - nginx source recipe should create web user before creating directories
  • [COOK-2221] - make nginx::source compatible with gentoo
  • [COOK-2267] - add version for runit recommends

v1.1.4

  • [COOK-2168] - specify package name as an attribute

v1.1.2

  • [COOK-1766] - Nginx Source Recipe Rebuilding Source at Every Run
  • [COOK-1910] - Add IPv6 module
  • [COOK-1966] - nginx cookbook should let you set gzip_vary and gzip_buffers in nginx.conf
  • [COOK-1969]- - nginx::passenger module not included due to use of symbolized :nginx_configure_flags
  • [COOK-1971] - Template passenger.conf.erb configures key passenger_max_pool_size 2 times
  • [COOK-1972] - nginx::source compile_nginx_source reports success in spite of failed compilation
  • [COOK-1975] - nginx::passenger requires rake gem
  • [COOK-1979] - Passenger module requires curl-dev(el)
  • [COOK-2080] - Restart nginx on source compilation

v1.1.0

  • [COOK-1263] - Nginx log (and possibly other) directory creations should be recursive
  • [COOK-1515] - move creation of node['nginx']['dir'] out of commons.rb
  • [COOK-1523] - nginx http_geoip_module requires libtoolize
  • [COOK-1524] - nginx checksums are md5
  • [COOK-1641] - add "use", "multi_accept" and "worker_rlimit_nofile" to nginx cookbook
  • [COOK-1683] - Nginx fails Windows nodes just by being required in metadata
  • [COOK-1735] - Support Amazon Linux in nginx::source recipe
  • [COOK-1753] - Add ability for nginx::passenger recipe to configure more Passenger global settings
  • [COOK-1754] - Allow group to be set in nginx.conf file
  • [COOK-1770] - nginx cookbook fails on servers that don't have a "cpu" attribute
  • [COOK-1781] - Use 'sv' to reload nginx when using runit
  • [COOK-1789] - stop depending on bluepill, runit and yum. they are not required by nginx cookbook
  • [COOK-1791] - add name attribute to metadata
  • [COOK-1837] - nginx::passenger doesn't work on debian family
  • [COOK-1956] - update naxsi version due to incompatibility with newer nginx

v1.0.2

  • [COOK-1636] - relax the version constraint on ohai

v1.0.0

  • [COOK-913] - defaults for gzip cause warning on service restart
  • [COOK-1020] - duplicate MIME type
  • [COOK-1269] - add passenger module support through new recipe
  • [COOK-1306] - increment nginx version to 1.2 (now 1.2.3)
  • [COOK-1316] - default site should not always be enabled
  • [COOK-1417] - resolve errors preventing build from source
  • [COOK-1483] - source prefix attribute has no effect
  • [COOK-1484] - source relies on /etc/sysconfig
  • [COOK-1511] - add support for naxsi module
  • [COOK-1525] - nginx source is downloaded every time
  • [COOK-1526] - nginx_site does not remove sites
  • [COOK-1527] - add http_echo_module recipe

v0.101.6

Erroneous cookbook upload due to timeout.

Version #'s are cheap.

v0.101.4

  • [COOK-1280] - Improve RHEL family support and fix ohai_plugins recipe bug
  • [COOK-1194] - allow installation method via attribute
  • [COOK-458] - fix duplicate nginx processes

v0.101.2

  • [COOK-1211] - include the default attributes explicitly so version is available.

v0.101.0

Attribute Change: node['nginx']['url'] -> node['nginx']['source']['url']; see the README.md.

  • [COOK-1115] - daemonize when using init script
  • [COOK-477] - module compilation support in nginx::source

v0.100.4

  • [COOK-1126] - source version bump to 1.0.14

v0.100.2

  • [COOK-1053] - Add :url attribute to nginx cookbook

v0.100.0

  • [COOK-818] - add "application/json" per RFC.
  • [COOK-870] - bluepill init style support
  • [COOK-957] - Compress application/javascript.
  • [COOK-981] - Add reload support to NGINX service

v0.99.2

  • [COOK-809] - attribute to disable access logging
  • [COOK-772] - update nginx download source location

Collaborator Number Metric
            

3.0.0 passed this metric

Foodcritic Metric
            

3.0.0 failed this metric

FC015: Consider converting definition to a Custom Resource: /tmp/6faf46831f493f6c0b2de5d4/chef_nginx/definitions/nginx_site.rb:1
FC023: Prefer conditional attributes: /tmp/6faf46831f493f6c0b2de5d4/chef_nginx/definitions/nginx_site.rb:25
FC023: Prefer conditional attributes: /tmp/6faf46831f493f6c0b2de5d4/chef_nginx/recipes/source.rb:27
FC023: Prefer conditional attributes: /tmp/6faf46831f493f6c0b2de5d4/chef_nginx/recipes/source.rb:164