summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'ansible')
-rwxr-xr-xansible/group_vars/infrastructure.yml1
-rw-r--r--ansible/kube_prometheus.yml5
-rw-r--r--ansible/site.yml2
3 files changed, 8 insertions, 0 deletions
diff --git a/ansible/group_vars/infrastructure.yml b/ansible/group_vars/infrastructure.yml
index b351697b..c8d9210a 100755
--- a/ansible/group_vars/infrastructure.yml
+++ b/ansible/group_vars/infrastructure.yml
@@ -27,3 +27,4 @@ nexus3_image: sonatype/nexus3:3.15.2
dns_server_image: andyshinn/dnsmasq:2.76
nginx_server_image: own_nginx:2.0.0
chartmuseum_server_image: chartmuseum/chartmuseum
+kube_prometheus_stack_enabled: false
diff --git a/ansible/kube_prometheus.yml b/ansible/kube_prometheus.yml
new file mode 100644
index 00000000..89408bfb
--- /dev/null
+++ b/ansible/kube_prometheus.yml
@@ -0,0 +1,5 @@
+---
+- name: Deploy kube-prometheus stack
+ hosts: infrastructure
+ roles:
+ - kube-prometheus-stack
diff --git a/ansible/site.yml b/ansible/site.yml
index 7e22c5b2..6f00a9a2 100644
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -16,5 +16,7 @@
- import_playbook: resources.yml
- import_playbook: infrastructure.yml
- import_playbook: rke.yml
+- import_playbook: kube_prometheus.yml
+ when: kube_prometheus_stack_enabled
- import_playbook: application.yml