add an array parameter to resource::vhost, server_name, that goes into the server_name nginx directive for that vhost
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
Merge pull request #18 from rbolkey/master

Comparison operations in nginx.conf.erb template look misplaced.
Merge pull request #17 from lboynton/nginx-alias

Add alias support
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.
Fixed merge
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.

Because vhost_autogen it's not actually managed by puppet but indirectly created by a puppet executed
command, it's added as ignore to avoid getting it removed.

Better formating for confd purge support

Better formating for confd purge support
Implementation of new vars configtest_enable and service_restart and their respective optional arguments.

Argument configtest_enable / params.pp $nx_configtest_enable
* Default false
* If true will set service[nginx] restart with contents of nx_service_restart.

Argument service_restart / params.pp $nx_service_restart
* Default '/etc/init.d/nginx configtest && /etc/init.d/nginx restart'
* Since nginx 0.7.53 nginx supports '-s HUP' which will reload testing configuration first, to be backwards compatible above default was choosen.

Many distributions of nginx already implement a configtest before restart, however many doesn't, and many
even don't provide restart but a stop/start combination. If configtest_enable is true then puppet will force
nginx to do a configtest no matter if it was going or not to do it itself.
Fixing merge from latest code on master plus guruhub
Merge pull request #24 from guruHub/pull_issue_20

Fixed error from cat when trying nginx.d/* on nodes without vhosts defined