Add prometheus-node-exporter role and add it to most hosts
This commit is contained in:
parent
88b8d3b9ba
commit
261bd7d654
|
@ -108,6 +108,16 @@ all:
|
|||
pretalx:
|
||||
wiki:
|
||||
zammad:
|
||||
prometheus_node_exporter_hosts:
|
||||
hosts:
|
||||
ccchoir:
|
||||
tickets:
|
||||
keycloak:
|
||||
onlyoffice:
|
||||
pad:
|
||||
pretalx:
|
||||
wiki:
|
||||
zammad:
|
||||
infrastructure_authorized_keys_hosts:
|
||||
hosts:
|
||||
ccchoir:
|
||||
|
|
|
@ -82,6 +82,11 @@
|
|||
roles:
|
||||
- nginx
|
||||
|
||||
- name: Ensure prometheus_node_exporter deployment on prometheus_node_exporter_hosts
|
||||
hosts: prometheus_node_exporter_hosts
|
||||
roles:
|
||||
- prometheus_node_exporter
|
||||
|
||||
- name: Configure unattended upgrades
|
||||
hosts: all
|
||||
become: true
|
||||
|
|
|
@ -98,9 +98,16 @@ scrape_configs:
|
|||
- woodpecker-intern.hamburg.ccc.de:9100
|
||||
- penpot-intern.hamburg.ccc.de:9100
|
||||
- jitsi.hamburg.ccc.de:9100
|
||||
# Wieske Physical Machines
|
||||
- onlyoffice-intern.hamburg.ccc.de:9100
|
||||
- ccchoir-intern.hamburg.ccc.de:9100
|
||||
- tickets-intern.hamburg.ccc.de:9100
|
||||
- keycloak-intern.hamburg.ccc.de:9100
|
||||
- onlyoffice-intern.hamburg.ccc.de:9100
|
||||
- pad-intern.hamburg.ccc.de:9100
|
||||
- wiki-intern.hamburg.ccc.de:9100
|
||||
- zammad-intern.hamburg.ccc.de:9100
|
||||
- labels:
|
||||
site: wieske
|
||||
type: physical_machine
|
||||
targets:
|
||||
- chaosknoten.hamburg.ccc.de:9100
|
||||
- chaosknoten.hamburg.ccc.de:9100
|
9
playbooks/roles/prometheus_node_exporter/meta/main.yaml
Normal file
9
playbooks/roles/prometheus_node_exporter/meta/main.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: distribution_check
|
||||
vars:
|
||||
distribution_check__distribution_support_spec:
|
||||
- name: Debian
|
||||
major_versions:
|
||||
- "11"
|
||||
- "12"
|
14
playbooks/roles/prometheus_node_exporter/tasks/main.yaml
Normal file
14
playbooks/roles/prometheus_node_exporter/tasks/main.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- name: make sure the `prometheus-node-exporter` package is installed
|
||||
ansible.builtin.apt:
|
||||
name: prometheus-node-exporter
|
||||
state: present
|
||||
allow_change_held_packages: true
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: make sure `prometheus-node-exporter.service` is started and ansibled
|
||||
ansible.builtin.systemd:
|
||||
name: prometheus-node-exporter.service
|
||||
state: started
|
||||
enabled: true
|
||||
become: true
|
Loading…
Reference in a new issue