From c2154c2c32fd6ab35f232011a4994a1c58520d3e Mon Sep 17 00:00:00 2001 From: Ruslan Khozinov Date: Tue, 31 Jan 2017 15:29:12 +0000 Subject: [PATCH] Fix deprecated firewall resource parameters The firewall module has deprecated the 'port' parameter. Instead, 'sport' and 'dport' should be used. Change-Id: I856327e6a1504c7386a34ed0ab43c99d2f0dfc02 --- deployment_scripts/puppet/manifests/firewall.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deployment_scripts/puppet/manifests/firewall.pp b/deployment_scripts/puppet/manifests/firewall.pp index 5ad7a143..a7a9f510 100644 --- a/deployment_scripts/puppet/manifests/firewall.pp +++ b/deployment_scripts/puppet/manifests/firewall.pp @@ -34,31 +34,31 @@ firewall { '002 accept related established rules': } firewall { '020 ssh': - port => 22, + dport => 22, proto => 'tcp', action => 'accept', } firewall { '113 corosync-input': - port => 5404, + dport => 5404, proto => 'udp', action => 'accept', } firewall { '114 corosync-output': - port => 5405, + sport => 5405, proto => 'udp', action => 'accept', } firewall { '200 influxdb': - port => [8083, hiera('lma::influxdb::influxdb_port'), 8088, 8091], + dport => [8083, hiera('lma::influxdb::influxdb_port'), 8088, 8091], proto => 'tcp', action => 'accept', } firewall { '201 grafana': - port => hiera('lma::influxdb::grafana_port'), + dport => hiera('lma::influxdb::grafana_port'), proto => 'tcp', action => 'accept', }