From c7b4ac8d74d27c385dc34986131239a0df3c66a7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Nov 2011 23:27:33 -0200 Subject: No need for virtual website resources; overriding is enough --- manifests/subsystems/websites.pp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'manifests/subsystems') diff --git a/manifests/subsystems/websites.pp b/manifests/subsystems/websites.pp index a71506d..60944a9 100644 --- a/manifests/subsystems/websites.pp +++ b/manifests/subsystems/websites.pp @@ -144,27 +144,26 @@ class websites::hosting inherits websites::setup { include pmwiki include apache::rails - Apache::Site <| tag == $hostname or tag == 'all' |> - Database::Instance <| tag == $hostname or tag == 'all' |> - Ikiwiki::Instance <| tag == $hostname or tag == 'all' |> + apache::site { "images": + docroot => "${apache_www_folder}/images", + mpm => false, + tag => 'all', + } + # Remove untagged site instances Apache::Site <| tag != $hostname and tag != 'all' |> { ensure => absent, } + # Remove untagged database instances Database::Instance <| tag != $hostname and tag != 'all' |> { ensure => absent, } + # Remove untagged ikiwiki instances Ikiwiki::Instance <| tag != $hostname and tag != 'all' |> { ensure => absent, } - - @apache::site { "images": - docroot => "${apache_www_folder}/images", - mpm => false, - tag => 'all', - } } class websites::hosting::admin inherits websites::setup { -- cgit v1.2.3