eae-adp-jump01: install prometheus node_exporter
This commit is contained in:
parent
75549ae079
commit
e3210198ff
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue