Add parameter to rewrite www to non-www
Update templates/vhost/vhost_header.erb
Update templates/vhost/vhost_footer.erb
add an array parameter to resource::vhost, server_name, that goes into the server_name nginx directive for that vhost
Merge pull request #14 from maestrodev/master

support operatingsystem RedHat
Merge pull request #11 from drdla/patch-1

Add parameter to rewrite www to non-www
Merge pull request #12 from drdla/patch-2

This is part of patch-1!
Merge pull request #13 from drdla/patch-3

This is part of patch-1!
Include stdlib rather than using class to fix conflicts with other modules using stdlib
Merge pull request #16 from lboynton/stdlib-fix

Include stdlib
Add alias support
Fixing lookupvar/comparison operations in nginx.conf.erb template.

A number of comparison operations were being performed against the
parameter of the call to scope.lookupvar instead of against the result
of the call.
Merge remote-tracking branch 'dhutty/master' into server-name-array

Conflicts:
	manifests/resource/vhost.pp
	templates/vhost/vhost_header.erb
Summary: Fixed error from cat when trying nginx.d/* on nodes without vhosts defined

Description:
When running first time from scratch, if class was included without any setup at all
and with sane defaults, in debian squeeze generates an error when trying to collect
non existant vhosts, because cat complains that can not expand * because there are no
files.

Changed:
Added unless to check that at least there is a file in nginx.d by testing it can expand.
Moved worker_connections, worker_process and proxy_set_header to the new structure, backwards compatible

Defaults are set inside params, nginx class will set default and send it from local var to nginx::config,
so even when there is no need for set default values on nginx::config, in case someone already using
this module it's for some reason calling directly nginx::config, to avoid breaking anything defaults are
set inside nginx::config too.
Added purge support in confd.

Added confd_purge option to tell it to purge files non managed by pupet in conf.d, default is false.
Implementation of option configtest_enable which will call configtest on each
service restart, therefore if user submit an invalid configuration nginx won't
stop and realize too late that it can start again.

By default it's false, if true it assumes you will have a working /etc/init.d/nginx
which accepts configtest and restart.
fixing nginx.conf.erb. otherwise it will lookup for a FalseClass or TrueClass variable
Merge pull request #23 from guilherme/master

Fix issue #22
Merge pull request #19 from lboynton/server-name-array

Server name array