Version information
released Feb 1st 2013
Start using this module
Add this module to your Puppetfile:
mod 'ploperations-nginx', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
ploperations/nginx — version 1.0.0 Feb 1st 2013
puppet-nginx
Usage
nginx::vhost { "boot.${domain}":
vhostroot => "/var/www/boot.${domain}",
port => 80,
}
nginx::vhost::redirect{ 'sslredirect':
servername => 'site.example.com',
priority => '49',
port => '80',
ssl => false,
dest => 'https://site.example.com/',
}
nginx::unicorn { $app_name:
port => '58765',
path => "/var/www/${app_name}",
isdefaultvhost => true,
unicorn_socket => "/var/run/${app_name}.sock",
require => Sinatra::App[$app_name],
}
nginx::loadbalancer { 'reverseproxy':
workers => [
'192.168.134.140:80',
'192.168.134.138:80',
],
backups => [
'192.168.134.143:80',
'192.168.134.151:80',
],
ssl => true,
}