summaryrefslogtreecommitdiff
path: root/manifests/resources.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-05-07 20:58:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-05-07 20:58:50 -0300
commit298d43a828b10a194196fb90f6f65944f14901a5 (patch)
treefecbbc2f31994b44707b558221677c97d84baaf2 /manifests/resources.pp
parent737b596d073acad8ddcd26ac8a1c7e4a0dafd4b3 (diff)
downloadpuppet-websites-298d43a828b10a194196fb90f6f65944f14901a5.tar.gz
puppet-websites-298d43a828b10a194196fb90f6f65944f14901a5.tar.bz2
Hiera 5 migrationHEADmaster
Diffstat (limited to 'manifests/resources.pp')
-rw-r--r--manifests/resources.pp14
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/resources.pp b/manifests/resources.pp
index 44ef67c..498d498 100644
--- a/manifests/resources.pp
+++ b/manifests/resources.pp
@@ -1,12 +1,12 @@
class websites::resources {
# Retrieve configured instances
- $sites = hiera('apache::sites', {})
- $modules = hiera('apache::modules', {})
- $configs = hiera('apache::configs', {})
- $databases = hiera('database::instances', {})
- $database_configs = hiera('database::configs', {})
- $ikiwikis = hiera('ikiwiki::instances', {})
- $domains = hiera('domain_check::instances', {})
+ $sites = lookup('apache::sites', undef, undef, {})
+ $modules = lookup('apache::modules', undef, undef, {})
+ $configs = lookup('apache::configs', undef, undef, {})
+ $databases = lookup('database::instances', undef, undef, {})
+ $database_configs = lookup('database::configs', undef, undef, {})
+ $ikiwikis = lookup('ikiwiki::instances', undef, undef, {})
+ $domains = lookup('domain_check::instances', undef, undef, {})
# Apply instances
create_resources('apache::site', $sites)