[ANSIBLE] Add kube_prometheus playbook 15/121615/2
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 1 Jun 2021 11:14:39 +0000 (13:14 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 1 Jun 2021 13:17:08 +0000 (13:17 +0000)
Change-Id: I65a7560423554d375b825fe0de04e6dd558e9371
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/group_vars/infrastructure.yml
ansible/kube_prometheus.yml [new file with mode: 0644]
ansible/site.yml

index b351697..c8d9210 100755 (executable)
@@ -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 (file)
index 0000000..89408bf
--- /dev/null
@@ -0,0 +1,5 @@
+---
+- name: Deploy kube-prometheus stack
+  hosts: infrastructure
+  roles:
+    - kube-prometheus-stack
index 7e22c5b..6f00a9a 100644 (file)
@@ -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