summaryrefslogtreecommitdiffstats
path: root/ansible/test/play-kube_prometheus/molecule/default/molecule.yml
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-01-04 13:51:54 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-01-05 09:44:48 +0000
commitdb11af6f59d3b9716824cc288dec4c1c0234964a (patch)
tree1909ea26b107ab2f781c9d611e8f6c7c22e737a9 /ansible/test/play-kube_prometheus/molecule/default/molecule.yml
parent1af8d804fc890f3b0e50022c9c13e4a895f63e34 (diff)
[MOLECULE] Add molecule setup for kube_prometheus.yml playbook
nfs_mount_path in kube-prometheus-stack role is coerced to global value from group_vars to allow direct verifier test reuse in playbook run. Change-Id: I125355f2b65b57ae6782b9eafcb6d6b58a7444e0 Issue-ID: OOM-2908 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/test/play-kube_prometheus/molecule/default/molecule.yml')
-rw-r--r--ansible/test/play-kube_prometheus/molecule/default/molecule.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/ansible/test/play-kube_prometheus/molecule/default/molecule.yml b/ansible/test/play-kube_prometheus/molecule/default/molecule.yml
new file mode 100644
index 00000000..a21bf1ec
--- /dev/null
+++ b/ansible/test/play-kube_prometheus/molecule/default/molecule.yml
@@ -0,0 +1,24 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
+platforms:
+ - name: infrastructure-play-kube-prometheus
+ image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.9}
+ pre_build_image: true
+ groups:
+ - infrastructure
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+verifier:
+ name: testinfra
+ directory: ../../../../roles/kube-prometheus-stack/molecule/default/tests/