eae-adp-jump01: install prometheus node_exporter

replace_gw-core01
Gregor Michels 2022-07-03 02:14:44 +02:00
parent 75549ae079
commit e3210198ff
2 changed files with 14 additions and 0 deletions

View File

@ -3,3 +3,6 @@ pass in proto udp from any to self port 51820
# allow ospf on wg0
pass on wg0 proto ospf
# allow prometheus on wg0
pass on wg0 proto tcp from any to self port 9100

View File

@ -17,6 +17,7 @@
notify:
- reload firewall
# TODO: only activates after reboot :(
- name: activate routing
blockinfile:
content: |
@ -26,6 +27,16 @@
mode: 0600
create: yes
- name: install node_exporter
package:
name: node_exporter
- name: enable node_exporter
service:
name: node_exporter
state: started
enabled: yes
handlers:
- name: reload firewall
command: pfctl -vf /etc/pf.conf