Forge Home

nginx

Install and manage nginx

10,799 downloads

10,799 latest version

3.2 quality score

Version information

  • 1.0.0 (latest)
released Feb 1st 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ploperations-nginx', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ploperations-nginx
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ploperations-nginx --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

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