aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/websites.pp17
1 files changed, 8 insertions, 9 deletions
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 {