firewall: add support for changing remote munin ip-address.

This commit is contained in:
Christoph 2019-09-04 17:55:46 +02:00
parent 444674e8f7
commit 4bfc548e13
2 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,9 @@
---
munin_remote_ipv4: 138.201.33.54
munin_remote_ipv6: 2a01:4f8:171:3493::54
is_dns_server: false
is_local_resolver: false

View File

@ -1355,6 +1355,17 @@
- not main_ipv4_exists.stat.exists
- cp_main_ipv4 is changed
# - Munin Remote IP
- name: Configure main_ipv4.conf (munin_remote_ip)
lineinfile:
path: /etc/ipt-firewall/main_ipv4.conf
regexp: '^\s*munin_remote_ip='
line: 'munin_remote_ip="{{ munin_remote_ipv4 }}"'
state: present
notify:
- Restart IPv4 Firewall
# ---
# Configure main_ipv6.conf
# ---
@ -1618,6 +1629,17 @@
- not main_ipv6_exists.stat.exists
- cp_main_ipv6 is changed
# - Munin Remote IP
- name: Configure main_ipv6.conf (munin_remote_ip)
lineinfile:
path: /etc/ipt-firewall/main_ipv6.conf
regexp: '^\s*munin_remote_ip='
line: 'munin_remote_ip="{{ munin_remote_ipv6 }}"'
state: present
notify:
- Restart IPv6 Firewall
# ---
# Host independet configuration files
# ---