summaryrefslogtreecommitdiffstats
path: root/ansible/roles/kube-prometheus-stack
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/kube-prometheus-stack')
-rw-r--r--ansible/roles/kube-prometheus-stack/molecule/default/converge.yml3
-rw-r--r--ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml5
-rw-r--r--ansible/roles/kube-prometheus-stack/molecule/default/prepare.yml10
3 files changed, 18 insertions, 0 deletions
diff --git a/ansible/roles/kube-prometheus-stack/molecule/default/converge.yml b/ansible/roles/kube-prometheus-stack/molecule/default/converge.yml
index 8662e436..c921d638 100644
--- a/ansible/roles/kube-prometheus-stack/molecule/default/converge.yml
+++ b/ansible/roles/kube-prometheus-stack/molecule/default/converge.yml
@@ -1,6 +1,9 @@
---
- name: Converge
hosts: all
+ pre_tasks:
+ - name: Include infrastructure group variables
+ include_vars: ../../../../group_vars/infrastructure.yml
tasks:
- name: "Include kube-prometheus-stack"
include_role:
diff --git a/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml b/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml
index 713e4d6c..17bfcd3a 100644
--- a/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml
+++ b/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml
@@ -18,5 +18,10 @@ provisioner:
env:
ANSIBLE_ROLES_PATH: ../../../../test/roles
ANSIBLE_LIBRARY: ../../../../library
+ inventory:
+ group_vars:
+ all:
+ app_name: onap
+ app_data_path: "/opt/{{ app_name }}"
verifier:
name: testinfra
diff --git a/ansible/roles/kube-prometheus-stack/molecule/default/prepare.yml b/ansible/roles/kube-prometheus-stack/molecule/default/prepare.yml
new file mode 100644
index 00000000..dc7e0401
--- /dev/null
+++ b/ansible/roles/kube-prometheus-stack/molecule/default/prepare.yml
@@ -0,0 +1,10 @@
+---
+- name: Prepare infra for kube-prometheus-stack role
+ hosts: all
+ pre_tasks:
+ - name: Include infrastructure group variables
+ include_vars: ../../../../group_vars/infrastructure.yml
+ tasks:
+ - name: "Include prepare-kube-prometheus-stack"
+ include_role:
+ name: "prepare-kube-prometheus-stack"