eae-adp-jump01: install prometheus node_exporter
parent
75549ae079
commit
e3210198ff
|
@ -3,3 +3,6 @@ pass in proto udp from any to self port 51820
|
||||||
|
|
||||||
# allow ospf on wg0
|
# allow ospf on wg0
|
||||||
pass on wg0 proto ospf
|
pass on wg0 proto ospf
|
||||||
|
|
||||||
|
# allow prometheus on wg0
|
||||||
|
pass on wg0 proto tcp from any to self port 9100
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
notify:
|
notify:
|
||||||
- reload firewall
|
- reload firewall
|
||||||
|
|
||||||
|
# TODO: only activates after reboot :(
|
||||||
- name: activate routing
|
- name: activate routing
|
||||||
blockinfile:
|
blockinfile:
|
||||||
content: |
|
content: |
|
||||||
|
@ -26,6 +27,16 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
create: yes
|
create: yes
|
||||||
|
|
||||||
|
- name: install node_exporter
|
||||||
|
package:
|
||||||
|
name: node_exporter
|
||||||
|
|
||||||
|
- name: enable node_exporter
|
||||||
|
service:
|
||||||
|
name: node_exporter
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload firewall
|
- name: reload firewall
|
||||||
command: pfctl -vf /etc/pf.conf
|
command: pfctl -vf /etc/pf.conf
|
||||||
|
|
Loading…
Reference in New Issue