summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-12-27 15:25:28 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-12-27 15:25:28 +0100
commitc87e6b70779bc406bbd4e19378d2b042909e79b5 (patch)
tree9834d54bfcc3838894b2bd6b63e32f1da91cf060
parentch-phoebe finalize vmhost setup (diff)
add phoebe to preliminary promzone
-rw-r--r--chaos-at-home/ch-phoebe.yml7
-rw-r--r--inventory/host_vars/ch-phoebe.yml33
-rw-r--r--inventory/hosts.ini1
3 files changed, 37 insertions, 4 deletions
diff --git a/chaos-at-home/ch-phoebe.yml b/chaos-at-home/ch-phoebe.yml
index e902f57a..8234d499 100644
--- a/chaos-at-home/ch-phoebe.yml
+++ b/chaos-at-home/ch-phoebe.yml
@@ -14,7 +14,6 @@
- role: vm/host/network
- role: installer/debian/base
- role: installer/openbsd/base
-
- # - role: apt-repo/spreadspace
- # - role: nginx/base
- # - role: monitoring/prometheus/exporter
+ - role: apt-repo/spreadspace
+ - role: nginx/base
+ - role: monitoring/prometheus/exporter
diff --git a/inventory/host_vars/ch-phoebe.yml b/inventory/host_vars/ch-phoebe.yml
index e87b1a42..8627f34a 100644
--- a/inventory/host_vars/ch-phoebe.yml
+++ b/inventory/host_vars/ch-phoebe.yml
@@ -28,6 +28,39 @@ apt_repo_components:
- non-free ## for microcode updates
+spreadspace_apt_repo_components:
+ - main
+ - prometheus
+
+prometheus_exporter_node_textfile_collector_scripts:
+ - deleted-libraries
+ - smartmon
+
+prometheus_exporters_extra:
+ - ssl
+ - ipmi
+
+prometheus_exporter_ipmi_modules:
+ default:
+ collectors:
+ - bmc
+ - ipmi
+ - chassis
+ - sel
+
+prometheus_job_multitarget_blackbox__probe:
+ ch-mon:
+ - instance: "ssh-{{ inventory_hostname }}"
+ target: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address') }}:{{ ansible_port | default(22) }}"
+ module: ssh_banner
+
+prometheus_job_multitarget_ssl__probe:
+ ch-phoebe:
+ - instance: "sslcert-prometheus-{{ inventory_hostname }}"
+ target: "/etc/ssl/prometheus/**/*.pem"
+ module: file
+
+
installer_storage:
type: lvm
vg: "{{ host_name }}"
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index c990f6f5..a159aaf3 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -425,6 +425,7 @@ ch-mon
[promzone-chaos-at-home]
ch-router
ch-testvm-prometheus
+ch-phoebe
ch-prometheus
[promzone-chaos-at-home:children]
chaos-at-home-ap