summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-26 15:05:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-26 15:05:21 -0300
commitc741e27b5525c7a5a69451b9b8227757517b028b (patch)
tree71aeff7ea6a8c3025f192c1711229c89c2782895
parent082f2b74642377d5594c89155050d07f4a4b5ea6 (diff)
downloadpuppet-websites-c741e27b5525c7a5a69451b9b8227757517b028b.tar.gz
puppet-websites-c741e27b5525c7a5a69451b9b8227757517b028b.tar.bz2
Support for create_resources
-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)
}