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

passenger_apache2 (37) Versions 4.0.0

Installs Passenger for Apache2

Policyfile
Berkshelf
Knife
cookbook 'passenger_apache2', '= 4.0.0', :supermarket
cookbook 'passenger_apache2', '= 4.0.0'
knife supermarket install passenger_apache2
knife supermarket download passenger_apache2
README
Dependencies
Changelog
Quality 100%

passenger_apache2 Cookbook

Cookbook Version
Build Status
OpenCollective
OpenCollective
License

Installs Phusion Passenger Ruby application server for Apache 2.

Maintainers

This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.

Requirements

Platforms

  • Debian/Ubuntu
  • RHEL/CentOS/Scientific/Amazon/Oracle
  • Fedora
  • openSUSE/SLES

Chef

  • Chef 14+

Cookbooks

  • apache2 >= 2.0.0

Attributes

  • node['passenger']['version'] - Specify the version of passenger to install.
  • node['passenger']['max_pool_size'] - Sets PassengerMaxPoolSize in the Apache module config.
  • node['passenger']['root_path'] - The location of the passenger gem.
  • node['passenger']['ruby_bin'] - Sets PassengerRuby in the Apache module config and is used for passenger module configuration. Defaults to node['languages']['ruby']['ruby_bin'].
  • node['passenger']['module_path'] - The location of the compiled passenger apache module.
  • node['passenger']['install_method'] - Includes the "source" (gem install) or "package" recipe. Default "source."
  • node['passenger']['apache_mpm'] - Override with an "override_attribute" (in a role, environment or with node.override) to "worker" or "threaded" to use apache2-threaded-dev package. Otherwise this assumes prefork.
  • node['passenger']['package']['name'] - Name of the package for passenger, default is nil, so this must be set before using the "package" install method/recipe.
  • node['passenger']['install_module'] - Specify the boolean value which decides installing Passenger. Defaults to true, and setting to false skips the installation
  • node['passenger']['package']['version'] - Specify the version of the passenger package to install. Uses version attribute above by default. To install the version available by default (latest, usually), delete the attribute in a recipe with this line:
  node.normal['passenger']['package'].delete('version')

Recipes

default

Installs passenger from gem (source) or package depending on the value of the install_method attribute.

mod_rails

Installs the passenger gem and enables the module in Apache2.

source

Installs passenger as a RubyGem.

package

Installs passenger as a Package.

Set the install_method attribute to package, then set the package['name'] attribute to the correct package for your platform. The recipe does not yet handle adding yum repositories for RHEL platforms, so that should be done in another recipe until COOK-2414 is resolved.

Set the node['passenger']['package']['version'] attribute to the correct value for your system's available package repository if necessary. By default the value is nil which will install the latest package version from the distribution package manager.

Usage

For example, to run a Rails application on passenger:

include_recipe "rails"
include_recipe "passenger_apache2"

web_app "myproj" do
  docroot "/srv/myproj/public"
  server_name "myproj.#{node[:domain]}"
  server_aliases [ "myproj", node[:hostname] ]
  rails_env "production"
end

A sample config template is provided, web_app.conf.erb. If this is suitable for your application, add 'cookbook "passenger_apache2"' to the define above to use that template. Otherwise, copy the template to the cookbook where you're using web_app, and modify as needed. The cookbook parameter is optional, if omitted it will search the cookbook where the define is used.

Example:

web_app "myproj" do
  # ...
  cookbook "passenger_apache2"
  # ...
end

Known Issues

When run as a daemonized process under init on linux, using https://github.com/opscode-cookbooks/chef-client/blob/master/recipes/init_service.rb for example, the /sbin/service script scrubs the environment, including the HOME environment variable. In some versions, Passenger depends on the HOME environment variable to be present. This can be worked around by setting the necessary environment variables directly in your recipes.

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website
https://opencollective.com/sous-chefs/sponsor/1/website
https://opencollective.com/sous-chefs/sponsor/2/website
https://opencollective.com/sous-chefs/sponsor/3/website
https://opencollective.com/sous-chefs/sponsor/4/website
https://opencollective.com/sous-chefs/sponsor/5/website
https://opencollective.com/sous-chefs/sponsor/6/website
https://opencollective.com/sous-chefs/sponsor/7/website
https://opencollective.com/sous-chefs/sponsor/8/website
https://opencollective.com/sous-chefs/sponsor/9/website

Dependent cookbooks

apache2 >= 7.1

Contingent cookbooks

application Applicable Versions
application_ruby Applicable Versions
chef Applicable Versions
gitorious Applicable Versions
instiki Applicable Versions
jently Applicable Versions
open-build-service Applicable Versions
radiant Applicable Versions
redmine Applicable Versions
stoplight Applicable Versions

passenger_apache2 Cookbook CHANGELOG

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

4.0.0 (2020-05-05)

  • resolved cookstyle error: metadata.rb:9:1 refactor: ChefModernize/UnnecessaryDependsChef14
  • resolved cookstyle error: recipes/default.rb:45:1 convention: Layout/IndentationWidth
  • Require Chef Infra Client 14 or later
  • Remove the dependency on the build-essential cookbook
  • Simplify platform check logic in the source recipe
  • Remove unused long_description and recipe metadata from metadata.rb

3.1.0 (2018-05-14)

  • Cookstyle fix
  • Remove maintainer files
  • Enable all Foodcritic rules
  • Use build_essential resource vs. recipe

3.0.1 (2017-04-27)

  • Fix attributes to work with Chef 13

3.0.0 (2016-09-16)

  • Default to 4.0.60
  • Fix compatibility with Ubuntu 16.04
  • correct documentation for using cookbook's default web_app.conf template
  • add example of specifying where to get web app template from
  • Testing updates
  • Avoid node.set and instead use node.normal
  • Use multipackage installs to speed up installs
  • Require Chef 12.1

v2.3.1 (2016-03-29)

  • Install Passenger using the correct Gem binary by adding default['passenger']['bin_dir'] and default['passenger']['bin']
  • Properly notify Apache2 to reload when configs change in mod_rails
  • Add known issues to the Readme
  • Run integration tests in Travis CI using Kitchen Docker
  • Add long_description to the metadata
  • Add basic converge coverage with ChefSpec
  • Update testing dependencies and resolve new Rubocop warnings
  • Remove incorrect build-essential dependency listed in the readme

v2.3.0 (2015-09-23)

  • Update Apache 2 requirement from 1.X.X to >= 2.0.0 which adds support for current Ubuntu and CentOS releases
  • The minimum supported Chef release is now 11.0
  • Added support for Fedora and openSUSE / SLES
  • Update source recipe to not upgrade packages. Package upgrades should be done outside community cookbooks and not randomly during Chef runs.
  • Add chef standard gitignore and chefignore files
  • Add a .foodcritic file to exclude rules that aren't valid for this cookbook
  • Update Kitchen CI config for new platforms and format
  • Add Rubocop config
  • Add Travis CI config
  • Update Berksfile to 3.X format and remove Yum, which wasn't actually used
  • Update Contributing, Testing, and Maintainers docs
  • Add Rakefile for simplified testing
  • Update Gemfile with updated testing and development gems
  • Replace all references to Opscode with Chef Software
  • Add Travis CI and cookbook version badges to the Readme

v2.2.3 (2014-12-07)

  • Fix idempotence check to check for existence of the right file, at the right time (#34, #37, #42)
  • Constrain apache2 cookbook version (#32, #33)
  • Update passenger version to latest bugfix release (4.0.53)

v2.2.2 (2014-08-25)

  • COOK-4666 Include attribute conditional check to install module

v2.2.0 (2014-02-21)

Bug

  • COOK-4081 - Install command does not use correct attribute

Improvement

  • COOK-4005 - Make the passenger apache module installation step use optional custom ruby when building from source

v2.1.4

Improvement

  • [COOK-4005] Make the passenger apache module installation use optional custom ruby when building from source

v2.1.2

Bug

  • [COOK-3706] Fix permission of passenger.load
  • [COOK-3747] Call full path for installing module

v2.1.0

Bug

  • COOK-3654 - Fix compatibility with Chef 11
  • COOK-3395 - Fix an issue where the recipe does not compile the version of passenger specified on the node attribute

Improvement

  • COOK-3486 - Make PassengerRuby configurable

v2.0.4

Bug

  • COOK-2293 - Automatically reload Ohai attribtues

v2.0.2

Bug

  • [COOK-2750]: using mod_rails in run_list by itself fails in version 2.0.0
  • [COOK-2972]: passenger_apache2 has foodcritic errors
  • [COOK-3180]: don't use mod_rails recipe w/ package install

v2.0.0

[COOK-2115] - Improve passenger_apache2 cookbook source [COOK-2128] - Allow apache passenger to be installed via packages [COOK-2203] - Remove :source key from module_path [COOK-2379] - passenger_apache2 should install passenger 3.0.19 [COOK-2380] - pasenger_apache2 should use platform_family for additional platform support

v1.1.0

  • [COOK-2003] - only able to use apache2-prefork-dev to compile passenger

v1.0.0

  • [COOK-1097] - documentation missing for mod_rails recipe
  • [COOK-1132] - example doesn't work
  • [COOK-1133] - update to passenger v3.0.11

v0.99.4

  • [COOK-958] - fix regression for loadmodule on debian/ubuntu
  • [COOK-1003] - support archlinux

v0.99.2

  • [COOK-859] - don't hardcode module path
  • [COOK-539] - use --auto for installation
  • [COOK-608] - remove RailsAllowModRewrite from web_app.erb
  • [COOK-640] - use correct development headers on RHEL

v0.99.0

  • Upgrade to passenger 3.0.7
  • Attributes are all "default"
  • Install curl development headers
  • Move PassengerMaxPoolSize to config of module instead of vhost.

Collaborator Number Metric
            

4.0.0 passed this metric

Contributing File Metric
            

4.0.0 passed this metric

Foodcritic Metric
            

4.0.0 passed this metric

No Binaries Metric
            

4.0.0 passed this metric

Testing File Metric
            

4.0.0 passed this metric

Version Tag Metric
            

4.0.0 passed this metric