Create firewalld rule that expose Prometheus node exporter

The softwarefactory-project.io will monitoring the logscraper host
condition.

Change-Id: I8e98a3be61226a47ae8e606853160e747a8c8f41
This commit is contained in:
Daniel Pawlik 2022-02-15 09:56:01 +01:00 committed by daniel.pawlik
parent 88a30eb620
commit 9d32d082e1
1 changed files with 8 additions and 1 deletions

View File

@ -35,10 +35,17 @@
state: started
enabled: true
- name: Configure firewalld
- name: Configure firewalld for gearman
firewalld:
zone: internal
port: "{{ gearman_port }}/{{ output_mode }}"
state: enabled
permanent: true
immediate: true
- name: Expose Prometheus node exporter metrics for softwarefactory-project.io
firewalld:
rich_rule: 'rule family=ipv4 source address=38.102.83.250/32 port port=9100 protocol=tcp accept'
state: enabled
permanent: true
immediate: true