diff options
author | 2021-06-02 12:29:11 +0200 | |
---|---|---|
committer | 2021-06-29 10:44:39 +0200 | |
commit | 50f104b171da93f447d937696d73bfa9f2d1e804 (patch) | |
tree | 84fee7ae77b5212f0ccbd2316c4590ec735cd91c | |
parent | 07a75bd62a4380c383e2589bed4976959a4f20b5 (diff) |
[MOLECULE] Setup Molecule for kube-prometheus-stack role
Change-Id: Id1c40e6a7da0ad0c42b162835f09630630569dd2
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
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" |