From e7f7b19dd5b66607ca1f9319f6bf9805bc3461bb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Nov 2011 22:03:41 -0200 Subject: Using virtual resources for all apache::site definitions --- manifests/subsystems/websites.pp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'manifests') diff --git a/manifests/subsystems/websites.pp b/manifests/subsystems/websites.pp index 21b924f..01b3450 100644 --- a/manifests/subsystems/websites.pp +++ b/manifests/subsystems/websites.pp @@ -66,18 +66,20 @@ class websites::setup { } # Default vhost: can just be applied on the defining host - apache::site { "$default_vhost": + @apache::site { "$default_vhost": server_alias => "$domain", docroot => "${apache_www_folder}", mpm => false, + tag => 'all', } # We have to use 'zzz-error' so it will be the last matched vhost - apache::site { "error": + @apache::site { "error": template => 'apache/error.erb', docroot => "${apache_error_folder}", filename => 'zzz-error', mpm => false, + tag => 'all', } # Index page for error @@ -100,10 +102,11 @@ class websites::setup { # TODO: this is temporary: remove when all nodes have applied it # We have to use 'zzz-erro' so it will be the last matched vhost - apache::site { "erro": + @apache::site { "erro": ensure => absent, docroot => '/var/www/erro', filename => 'zzz-erro', + tag => 'all', } # TODO: this is temporary: remove when all nodes have applied it -- cgit v1.2.3