Commit 9a9c3836 authored by Goh Choon Ming's avatar Goh Choon Ming

use unique() to remove duplicate ip address from hiera array

parent c5b0722c
......@@ -21,7 +21,8 @@ class opstheater::profile::firewall {
purge => true,
}
$ip_whitelist.each | String $ip | {
$ip_list = unique($ip_whitelist)
$ip_list.each | String $ip | {
firewall { "100 accept connections for ${ip}":
chain => 'OPSTHEATER',
action => 'accept'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment