From c741e27b5525c7a5a69451b9b8227757517b028b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 Sep 2015 15:05:21 -0300 Subject: Support for create_resources --- manifests/setup.pp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) } -- cgit v1.2.3