From 3f7490ed9ef74b5b524622ce9d90e80febdcc5c7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 May 2020 20:58:28 -0300 Subject: Hiera 5 migration --- manifests/init.pp | 2 +- manifests/ntpdate.pp | 2 +- manifests/timezone.pp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index a785276..8052037 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,6 +1,6 @@ # This class ensures ntp is up'n running and synchronizing with ntp servers. class ntp( - $servers = hiera('ntp::servers', '') + $servers = lookup('ntp::servers', undef, undef, '') ) { class { 'ntp::timezone': } diff --git a/manifests/ntpdate.pp b/manifests/ntpdate.pp index ed858ba..d9b7bd8 100644 --- a/manifests/ntpdate.pp +++ b/manifests/ntpdate.pp @@ -1,5 +1,5 @@ class ntp::ntpdate( - $pool = hiera('ntp::pool', '') + $pool = lookup('ntp::pool', undef, undef, '') ) { class { 'ntp::timezone': } diff --git a/manifests/timezone.pp b/manifests/timezone.pp index a54676b..4b41815 100644 --- a/manifests/timezone.pp +++ b/manifests/timezone.pp @@ -1,5 +1,5 @@ class ntp::timezone( - $zone = hiera('ntp::zone', '') + $zone = lookup('ntp::zone', undef, undef, '') ) { case $zone { -- cgit v1.2.3