We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed50b9d commit e1aba9eCopy full SHA for e1aba9e
manifests/agent.pp
@@ -471,15 +471,18 @@
471
472
# Manage firewall
473
if $manage_firewall {
474
- firewall { '150 zabbix-agent':
475
- dport => $listenport,
476
- proto => 'tcp',
477
- action => 'accept',
478
- source => $server,
479
- state => [
480
- 'NEW',
481
- 'RELATED',
482
- 'ESTABLISHED'],
+ $servers = split($server, ',')
+ $servers.each |$_server| {
+ firewall { "150 zabbix-agent from ${_server}":
+ dport => $listenport,
+ proto => 'tcp',
+ action => 'accept',
+ source => $_server,
+ state => [
+ 'NEW',
483
+ 'RELATED',
484
+ 'ESTABLISHED'],
485
+ }
486
}
487
488
# the agent doesn't work perfectly fine with selinux
0 commit comments