Last active
August 29, 2015 14:14
-
-
Save srockstyle/388f4799533959fd1f36 to your computer and use it in GitHub Desktop.
ChefでnginxのビルドからPassengerのビルドまで質問に答えず一発で終わらせる方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby #Gistでハイライトされないので | |
## nginxのビルドとpassnegerのインストール | |
execute 'build nginx' do | |
command "passenger-install-nginx-module" << | |
" --auto" << | |
" --prefix=/opt/nginx" << | |
" --nginx-source-dir=/usr/src/nginx-#{node['nginx']['version']}" << | |
" --extra-configure-flags='--with-ipv6 --with-http_realip_module --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module'" | |
not_if do | |
File.exists?("/opt/nginx/sbin/nginx") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment