stantont / puppetlabs-nginx

Puppet Module to manage NGINX on various UNIXes

Home Page:http://forge.puppetlabs.com/puppetlabs/nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX Module

We've just added a few options.

Based on:

James Fryman jamison@puppetlabs.com

This module manages NGINX from within Puppet.

Quick Start

Install and bootstrap an NGINX instance

    node default {
      class { 'nginx': }
    }

Setup a new virtual host

    node default {
      class { 'nginx': }
      nginx::resource::vhost { 'www.puppetlabs.com':
        ensure   => present,
        www_root => '/var/www/www.puppetlabs.com',
      }
    }

Add a Proxy Server(s)

   node default {
     class { 'nginx': }
     nginx::resource::upstream { 'puppet_rack_app':
       ensure  => present,
       members => [
         'localhost:3000',
         'localhost:3001',
         'localhost:3002',
       ],
     }

     nginx::resource::vhost { 'rack.puppetlabs.com':
       ensure   => present,
       proxy  => 'http://puppet_rack_app',
     }
   }

About

Puppet Module to manage NGINX on various UNIXes

http://forge.puppetlabs.com/puppetlabs/nginx

License:Other


Languages

Language:Puppet 100.0%