firewall: add support for changing remote munin ip-address.
This commit is contained in:
parent
444674e8f7
commit
4bfc548e13
@ -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
|
||||
|
@ -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
|
||||
# ---
|
||||
|
Loading…
Reference in New Issue
Block a user