module-nginx/README.markdown
James Fryman 4d02012150 Merge branch 'master' of github.com:jfryman/puppet-nginx
Conflicts:
	README.markdown
	manifests/resource/location.pp
2012-08-27 09:29:46 -05:00

47 lines
878 B
Markdown

# NGINX Module
James Fryman <jamison@puppetlabs.com>
This module manages NGINX from within Puppet.
# Quick Start
Install and bootstrap an NGINX instance
<pre>
node default {
class { 'nginx': }
}
</pre>
Setup a new virtual host
<pre>
node default {
class { 'mcollective': }
nginx::resource::vhost { 'www.puppetlabs.com':
ensure => present,
www_root => '/var/www/www.puppetlabs.com',
}
}
</pre>
Add a Proxy Server(s)
<pre>
node default {
class { 'mcollective': }
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',
}
}
</pre>