Skip to content
Snippets Groups Projects
Commit cb685673 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'fix-node-exporter-firewall' into 'feat-hpc-factory'

fix node exporter with firewalld enabled

See merge request !186
parents bc41900b a96a7c84
No related branches found
No related tags found
2 merge requests!186fix node exporter with firewalld enabled,!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
Pipeline #13403 passed with stage
in 1 minute and 12 seconds
......@@ -58,3 +58,16 @@
name: node_exporter
state: restarted
enabled: true
- name: Collect facts about system services
ansible.builtin.service_facts:
- name: Configure firewalld to allow prometheus
ansible.posix.firewalld:
port: "{{ node_exporter_port }}/tcp"
zone: public
state: enabled
permanent: true
when:
- "'firewalld.service' in ansible_facts.services"
- ansible_facts.services["firewalld.service"].state == "running"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment