Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (48 sloc) 1.91 KB
#
# Cookbook Name:: rvm_passenger
# Attributes:: default
#
# Author:: Fletcher Nichol (<fnichol@nichol.ca>)
#
# Copyright:: 2010, 2011, Fletcher Nichol
#
# 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.
#
# version will default to most current version from RubyGems, unless overriden
default['rvm_passenger']['version'] = nil
# rvm_ruby will default to "#{node['rvm']['default_ruby']}@passenger",
# unless overriden
default['rvm_passenger']['rvm_ruby'] = nil
default['rvm_passenger']['wrapper_prefix'] = "run"
default['rvm_passenger']['max_pool_size'] = 6
default['rvm_passenger']['pool_idle_time'] = 300
default['rvm_passenger']['buffers'] = '8 16k'
default['rvm_passenger']['buffer_size'] = '32k'
default['rvm_passenger']['rack_version'] = nil
case platform
when "suse"
node.set['rvm_passenger']['common_pkgs'] = %w{libcurl-devel}
node.set['rvm_passenger']['apache2_pkgs'] =
%w{apache2-devel libapr1-devel libapr-util1-devel}
when "centos","redhat","fedora","scientific","amazon"
if node['platform_version'].to_f < 6
node.set['rvm_passenger']['common_pkgs'] = %w{libcurl-devel openssl-devl zlib-devel}
else
node.set['rvm_passenger']['common_pkgs'] = %w{curl-devel}
end
node.set['rvm_passenger']['apache2_pkgs'] = %w{httpd-devel}
else
node.set['rvm_passenger']['common_pkgs'] = %w{libcurl4-openssl-dev}
node.set['rvm_passenger']['apache2_pkgs'] =
%w{apache2-threaded-dev libapr1-dev libaprutil1-dev}
end