]> gitweb.fluxo.info Git - puppet-ntp.git/commitdiff
Hiera 5 migration master
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 May 2020 23:58:28 +0000 (20:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 May 2020 23:58:28 +0000 (20:58 -0300)
manifests/init.pp
manifests/ntpdate.pp
manifests/timezone.pp

index a7852763a4603c6de9b7ff7658f7b3027e1229db..8052037ff8ccb21e4647baf9042eb5004ce0ebc3 100644 (file)
@@ -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': }
 
index ed858baafed3b2681151cdd67a7e02ceede33ffc..d9b7bd8c01806229847337cf917afd361b9c4dea 100644 (file)
@@ -1,5 +1,5 @@
 class ntp::ntpdate(
-  $pool = hiera('ntp::pool', '')
+  $pool = lookup('ntp::pool', undef, undef, '')
 ) {
   class { 'ntp::timezone': }
 
index a54676bb7b7798d8668ce30b12511fcad35073e4..4b418151772f725ae09995c966ac654733d89f12 100644 (file)
@@ -1,5 +1,5 @@
 class ntp::timezone(
-  $zone = hiera('ntp::zone', '')
+  $zone = lookup('ntp::zone', undef, undef, '')
 ) {
 
   case $zone {