diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-05-07 21:06:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-05-07 21:06:40 -0300 |
commit | 8c2babfd529b4c1e0d3844afc08b728a05f61caa (patch) | |
tree | 8f44d74d79fa2f0aa62f1987d0197cb1aaa706a7 /manifests/init.pp | |
parent | e06d326f0be9f69bf4fa3b695f898c1cb9c5b200 (diff) | |
download | puppet-firewall-8c2babfd529b4c1e0d3844afc08b728a05f61caa.tar.gz puppet-firewall-8c2babfd529b4c1e0d3844afc08b728a05f61caa.tar.bz2 |
Hiera 5 migration
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index c812955..c760895 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,12 +1,12 @@ # Firewall definitions for physical servers class firewall( - $device = hiera('firewall::device', 'eth0'), - $zone = hiera('firewall::zone', '-'), - $local_net = hiera('firewall::local_net', false), - $device_options = hiera('firewall::device_options', 'tcpflags,blacklist,routefilter,nosmurfs,logmartians'), - $vm_address = hiera('firewall::vm_address', '192.168.0.0/24'), - $vm_device = hiera('firewall::vm_device', false), - $ssh = hiera('firewall::ssh', 'ACCEPT'), + $device = lookup('firewall::device', undef, undef, 'eth0'), + $zone = lookup('firewall::zone', undef, undef, '-'), + $local_net = lookup('firewall::local_net', undef, undef, false), + $device_options = lookup('firewall::device_options', undef, undef, 'tcpflags,blacklist,routefilter,nosmurfs,logmartians'), + $vm_address = lookup('firewall::vm_address', undef, undef, '192.168.0.0/24'), + $vm_device = lookup('firewall::vm_device', undef, undef, false), + $ssh = lookup('firewall::ssh', undef, undef, 'ACCEPT'), ) { class { 'shorewall': } @@ -175,7 +175,7 @@ class firewall( destination => '$FW', proto => '-', destinationport => '-', - ratelimit => hiera("firewall::ssl_ratelimit", '-'), + ratelimit => lookup("firewall::ssl_ratelimit", undef, undef, '-'), order => 103, } |