summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/ch-mon.yml30
-rw-r--r--chaos-at-home/ch-testvm-prometheus.yml6
-rw-r--r--chaos-at-home/host_vars/ch-mon.yml10
3 files changed, 44 insertions, 2 deletions
diff --git a/chaos-at-home/ch-mon.yml b/chaos-at-home/ch-mon.yml
new file mode 100644
index 00000000..bb20677f
--- /dev/null
+++ b/chaos-at-home/ch-mon.yml
@@ -0,0 +1,30 @@
+---
+- name: Basic Setup
+ hosts: ch-mon
+ roles:
+ - role: apt-repo/base
+ - role: core/base
+ - role: core/sshd/base
+ - role: core/zsh
+ - role: core/ntp
+ - role: storage/lvm/groups
+ - role: nginx/base
+ - role: apt-repo/spreadspace
+ - role: monitoring/prometheus/ca
+ - role: monitoring/prometheus/exporter
+ - role: monitoring/prometheus/alertmanager
+ - role: monitoring/prometheus/server
+ - role: monitoring/grafana
+ - role: nginx/vhost
+ nginx_vhost:
+ name: monitoring
+ template: generic-proxy-no-buffering
+ hostnames:
+ - "_"
+ locations:
+ '/grafana/':
+ proxy_pass: "http://127.0.0.1:3000"
+ '/prometheus/':
+ proxy_pass: "http://127.0.0.1:9090"
+ '/alertmanager/':
+ proxy_pass: "http://127.0.0.1:9093"
diff --git a/chaos-at-home/ch-testvm-prometheus.yml b/chaos-at-home/ch-testvm-prometheus.yml
index a34d58e3..3fd99d41 100644
--- a/chaos-at-home/ch-testvm-prometheus.yml
+++ b/chaos-at-home/ch-testvm-prometheus.yml
@@ -7,5 +7,7 @@
- role: core/sshd/base
- role: core/zsh
- role: core/ntp
- - role: kubernetes/base
- - role: kubernetes/standalone/base
+ - role: apt-repo/spreadspace
+ - role: monitoring/prometheus/exporter
+ # - role: kubernetes/base
+ # - role: kubernetes/standalone/base
diff --git a/chaos-at-home/host_vars/ch-mon.yml b/chaos-at-home/host_vars/ch-mon.yml
new file mode 100644
index 00000000..02b3883a
--- /dev/null
+++ b/chaos-at-home/host_vars/ch-mon.yml
@@ -0,0 +1,10 @@
+$ANSIBLE_VAULT;1.2;AES256;chaos-at-home
+64303062373862353734336666336331613033343966353530323764303830386162633039656461
+3630326139303239353862336338306662646230663332660a646139363333376332653331376135
+35366465323236396234396133653364343130383631366232646362363930343938306438613161
+3965303365613234380a626232376239303165313536653439353136643861646631323031313837
+32373737326539646336373661376539336663346637616662313133663663313733353538636435
+31366638616632333836656561363464353635336638343436386339353065393530376531353039
+63343336383732336533333336303766323839646636643235313463306436353066653261393136
+64336263383336653765343335613038633263306638336639653230346633366539613431616434
+3733