diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-02 12:29:11 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-02 12:29:11 +0200 |
commit | bc9ddc3d9940e32c29a0488b11e05dc853aeb88a (patch) | |
tree | b0f523a5c249e96ec4acaf7ed7f4e2ff9900acac | |
parent | b8ef4b25fde106acd20e92a913f2b2f785ccd9de (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" |