Skip to content

Commit

Permalink
chore(agent): Move hardcoded fw zone to defaults (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 1, 2024
1 parent 5a4690f commit 8e41769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions roles/agent/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ _radiorabe_zabbix_agent_zabbix_agent_tls: cert
_radiorabe_zabbix_agent_zabbix_agent_cafile: /etc/ipa/ca.crt
_radiorabe_zabbix_agent_zabbix_agent_tlscertfile: /etc/pki/tls/certs/zabbix-agent.crt
_radiorabe_zabbix_agent_zabbix_agent_tlskeyfile: /etc/pki/tls/private/zabbix-agent.key

_radiorabe_zabbix_agent_firewall_zone: service
2 changes: 1 addition & 1 deletion roles/agent/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
vars:
firewall:
- rich_rule: ['rule family="ipv4" source address="{{ _rabe_zabbix_server_ip }}" service name="zabbix-agent" accept']
zone: service
zone: "{{ _radiorabe_zabbix_agent_firewall_zone }}"
state: enabled
tags:
- role::rabe_zabbix.agent
Expand Down

0 comments on commit 8e41769

Please sign in to comment.