Chef cookbook rvm_passenger_apache2
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead, 182 commits behind chef-cookbooks:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
templates/default
test/kitchen
.gitignore
CHANGELOG.md
CONTRIBUTING
Gemfile
LICENSE
README.md
metadata.rb

README.md

Description

Installs passenger using rvm, for Apache 2.

Requirements

Platform

Tested on Ubuntu 10.04. Should work on any Ubuntu/Debian platforms.

Cookbooks

cookbooks:

Attributes

  • passenger[:rvm_path] - where is rvm installed (could use $rvm_path instead?)

  • passenger[:rvm_ruby_version] - rvm ruby version ie. "1.9.3-p194"

  • passenger[:rvm_gemset] - rvm gemset ie. "global"

  • passenger[:version] - Specify the version of passenger to install.

  • passenger[:max_pool_size] - Sets PassengerMaxPoolSize in the Apache module config.

  • passenger[:root_path] - The location of the passenger gem.

  • passenger[:module_path] - The location of the compiled passenger apache module.

Recipes

default

Installs the passenger gem.

mod_rails

Installs the passenger gem and enables the module in Apache2.

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"' 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.

License and Author

Author:: Joshua Timberman (joshua@opscode.com) Author:: Joshua Sierles (joshua@37signals.com) Author:: Michael Hale (mikehale@gmail.com) Author:: Stefan Leszkiewicz (sleszk@gmail.com)

Copyright:: 2009-2011, Opscode, Inc Copyright:: 2009, 37signals Coprighty:: 2009, Michael Hale Corpighty:: 2012, Stefan L.

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.