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 {