Sha256: 30e1c861b044f5a88c7c0b674e961d4f2671d23e37d38211e02f66c6a0bcb414
Contents?: true
Size: 1.26 KB
Versions: 6
Compression:
Stored size: 1.26 KB
Contents
# # Cookbook Name:: passenger # Recipe:: default # # Copyright 2012, Relevance # # All rights reserved - Do Not Redistribute # include_recipe "ruby" include_recipe "nginx::source" configure_flags = node[:nginx][:configure_flags].join(" ") nginx_install = node[:nginx][:install_path] nginx_version = node[:nginx][:version] nginx_dir = node[:nginx][:dir] execute "install passenger" do command "#{node[:ruby][:install_path]}/bin/gem install passenger --no-ri --no-rdoc -v #{node[:passenger][:version]}" not_if "#{node[:ruby][:install_path]}/bin/gem list -l passenger$ | grep -q #{node[:passenger][:version]}" end execute "passenger_nginx_module" do command %Q{ #{node[:ruby][:install_path]}/bin/passenger-install-nginx-module \ --auto --prefix=#{nginx_install} \ --nginx-source-dir=#{Chef::Config[:file_cache_path]}/nginx-#{nginx_version} \ --extra-configure-flags='#{configure_flags}' } not_if "#{nginx_install}/sbin/nginx -V 2>&1 | grep '#{node[:ruby][:gems_dir]}/passenger-#{node[:passenger][:version]}/ext/nginx'" notifies :restart, resources(:service => "nginx") end template "#{nginx_dir}/conf.d/passenger.conf" do source "passenger_nginx.conf.erb" owner "root" group "root" mode "0644" notifies :restart, resources(:service => "nginx") end
Version data entries
6 entries across 6 versions & 1 rubygems