summaryrefslogtreecommitdiff
path: root/manifests/setup.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/setup.pp')
-rw-r--r--manifests/setup.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/setup.pp b/manifests/setup.pp
index 292e82f..a7ec5fb 100644
--- a/manifests/setup.pp
+++ b/manifests/setup.pp
@@ -105,4 +105,13 @@ class websites::setup {
require => File["${apache::error_folder}", "${apache::www_folder}/images"],
}
+ # Retrieve configured instances
+ $sites = hiera('apache::sites', {})
+ $databases = hiera('database::instances', {})
+ $ikiwikis = hiera('ikiwiki::instances', {})
+
+ # Apply instances
+ create_resources('apache::site', $sites)
+ create_resources('database::instance', $databases)
+ create_resources('ikiwiki::instance', $ikiwikis)
}