From 8c2babfd529b4c1e0d3844afc08b728a05f61caa Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 May 2020 21:06:40 -0300 Subject: Hiera 5 migration --- manifests/virtual/https.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manifests/virtual/https.pp') diff --git a/manifests/virtual/https.pp b/manifests/virtual/https.pp index 36e0c9f..70a10a4 100644 --- a/manifests/virtual/https.pp +++ b/manifests/virtual/https.pp @@ -5,8 +5,8 @@ class firewall::virtual::https($destination) { destination => "fw:$destination:443", proto => 'tcp', destinationport => '443', - originaldest => hiera('firewall::external_ip', $::ipaddress), - ratelimit => hiera("firewall::ssl_ratelimit", '-'), + originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), + ratelimit => lookup("firewall::ssl_ratelimit", undef, undef, '-'), order => 602, } @@ -16,8 +16,8 @@ class firewall::virtual::https($destination) { destination => "vm:$destination:443", proto => 'tcp', destinationport => '443', - originaldest => hiera('firewall::external_ip', $::ipaddress), - ratelimit => hiera("firewall::ssl_ratelimit", '-'), + originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), + ratelimit => lookup("firewall::ssl_ratelimit", undef, undef, '-'), order => 602, } } -- cgit v1.2.3