nginx

Install and manage nginx

Puppet Operations

ploperations

10,253 downloads

10,253 latest version

3.2 quality score

Version information

  • 1.0.0 (latest)
released Feb 1st 2013

Start using this module

Documentation

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,
}