Skip to content

Instantly share code, notes, and snippets.

@srockstyle
Last active August 29, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srockstyle/388f4799533959fd1f36 to your computer and use it in GitHub Desktop.
Save srockstyle/388f4799533959fd1f36 to your computer and use it in GitHub Desktop.
ChefでnginxのビルドからPassengerのビルドまで質問に答えず一発で終わらせる方法
#!/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