diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-26 15:05:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-26 15:05:21 -0300 |
commit | c741e27b5525c7a5a69451b9b8227757517b028b (patch) | |
tree | 71aeff7ea6a8c3025f192c1711229c89c2782895 | |
parent | 082f2b74642377d5594c89155050d07f4a4b5ea6 (diff) | |
download | puppet-websites-c741e27b5525c7a5a69451b9b8227757517b028b.tar.gz puppet-websites-c741e27b5525c7a5a69451b9b8227757517b028b.tar.bz2 |
Support for create_resources
-rw-r--r-- | manifests/setup.pp | 9 |
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) } |