nginx:centos

home > recipes > nginx > centos

Tasks

Task documentation

nginx:centos:initscript

Install nginx initscript

Parameters

nginx_bin_path
Nginx sbin path
Defaults to "/sbin/nginx"
nginx_conf_path
Path to nginx conf
Defaults to "/etc/nginx/nginx.conf"
nginx_pid_path
Path to nginx pid file
Defaults to "/var/run/nginx.pid"

nginx:centos:install

Install nginx, conf, initscript, nginx user and service.

Source

Parameters

nginx_build_options
Nginx build options.

set :nginx_build_options, {
  :url => "http://sysoev.ru/nginx/nginx-0.5.35.tar.gz",
  :configure_options => "--sbin-path=#{nginx_bin_path} --conf-path=#{nginx_conf_path}
    --pid-path=#{nginx_pid_path} --error-log-path=/var/log/nginx_master_error.log --lock-path=/var/lock/nginx 
    --prefix=#{nginx_prefix_path} --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1 --with-http_ssl_module" 
}

nginx_bin_path
Nginx sbin path
Defaults to "/sbin/nginx"
nginx_conf_path
Path to nginx conf
Defaults to "/etc/nginx/nginx.conf"
nginx_pid_path
Path to nginx pid file
Defaults to "/var/run/nginx.pid"
nginx_prefix_path
Nginx install prefix
Defaults to "/var/nginx"

nginx:centos:restart

Restart nginx (service)

ducktyper.com, 14th May 2008
Theme extended from Paul Battley