summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml27
l---------ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml1
2 files changed, 28 insertions, 0 deletions
diff --git a/ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml b/ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml
new file mode 100644
index 00000000..383f03a4
--- /dev/null
+++ b/ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml
@@ -0,0 +1,27 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
+platforms:
+ - name: infrastructure-play-ubuntu-kube-prometheus
+ image: molecule-${PREBUILD_PLATFORM_DISTRO:-ubuntu}:${PREBUILD_DISTRO_VERSION:-18.04}
+ pre_build_image: true
+ groups:
+ - infrastructure
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+ playbooks:
+ prepare: ../default/prepare.yml
+ converge: ../default/converge.yml
+verifier:
+ name: testinfra
+ directory: ../../../../roles/kube-prometheus-stack/molecule/default/tests/
diff --git a/ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml b/ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml
new file mode 120000
index 00000000..8be219f6
--- /dev/null
+++ b/ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml
@@ -0,0 +1 @@
+../default/vars.yml \ No newline at end of file