action :install do
if not installed?
- package package_name do
- version new_resource.version
- end
+ package package_name
updated = true
else
attribute :name, :kind_of => String, :name_attribute => true
attribute :package, :kind_of => String
-attribute :version, :kind_of => String
attribute :conf, :kind_of => String
attribute :variables, :kind_of => Hash, :default => {}
default[:apt][:sources] = node[:apt][:sources] | [ "brightbox-ruby-ng", "passenger" ]
-default[:passenger][:version] = "3.0.21"
default[:passenger][:ruby_version] = "1.9.1"
default[:passenger][:max_pool_size] = 6
default[:passenger][:pool_idle_time] = 300
end
apache_module "passenger" do
- version node[:passenger][:version]
conf "passenger.conf.erb"
end
-if node[:passenger][:version] < "4"
- package "passenger-common#{node[:passenger][:ruby_version]}"
-end
-
munin_plugin "passenger_memory"
munin_plugin "passenger_processes"
munin_plugin "passenger_queues"
# DO NOT EDIT - This file is being maintained by Chef
<IfModule mod_passenger.c>
-<% if node[:passenger][:version] >= "4" -%>
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
-<% else -%>
- PassengerRoot /usr
-<% end -%>
PassengerRuby /usr/local/bin/passenger-ruby
-<% if node[:passenger][:version] < "4" -%>
- PassengerUseGlobalQueue on
-<% end -%>
PassengerMaxPoolSize <%= node[:passenger][:max_pool_size] %>
PassengerPoolIdleTime <%= node[:passenger][:pool_idle_time] %>
</IfModule>
}
}
},
- :passenger => {
- :version => "4.0.45"
- },
:postgresql => {
:versions => [ "9.1" ],
:settings => {
:max_requests_per_child => 10000
}
},
- :passenger => {
- :version => "4.0.45"
- },
:taginfo => {
:sites => [
{
"/store/rails" => { :host => "ironbelly", :path => "/store/rails" }
},
:passenger => {
- :version => "4.0.45",
:pool_idle_time => 0
},
:web => {