From bf99feb90d736e98bbb3f812f80ec482d01ba58b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 6 Mar 2010 14:11:40 -0300 Subject: Movind zzz-erro to zzz-error on websites --- manifests/websites.pp | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/manifests/websites.pp b/manifests/websites.pp index adfd11e..93dd609 100644 --- a/manifests/websites.pp +++ b/manifests/websites.pp @@ -56,26 +56,50 @@ class websites::setup { docroot => "${apache_www_folder}", } + # We have to use 'zzz-error' so it will be the last matched vhost + apache::site { "error": + source => true, + docroot => '/var/www/error', + filename => 'zzz-error', + } + + # Index page for error + file { "/var/www/error/index.html": + ensure => "${apache_www_folder}/index.html", + owner => "root", + group => "root", + force => true, + require => File["/var/www/error"], + } + + # 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": + ensure => absent, source => true, docroot => '/var/www/erro', filename => 'zzz-erro', } + # TODO: this is temporary: remove when all nodes have applied it + file { "/var/www/erro": + ensure => absent, + recurse => true, + force => true, + } + + # TODO: this is temporary: remove when all nodes have applied it # Index page for erro file { "/var/www/erro/index.html": - ensure => "${apache_www_folder}/index.html", + ensure => absent, owner => "root", group => "root", force => true, - require => File["/var/www/erro"], } # TODO: this is temporary: remove when all nodes have applied it file { "/var/www/erro/missing.html": ensure => absent, - require => File["/var/www/erro"], } } -- cgit v1.2.3