summaryrefslogtreecommitdiffstats
path: root/ansible/test/play-rke/molecule/default/molecule.yml
diff options
context:
space:
mode:
authorMichal Zegan <m.zegan@samsung.com>2019-06-06 17:49:51 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-01-16 11:19:46 +0000
commit23ba267911f1b9b7120ea45f9f40f27ed144ade8 (patch)
treef9c331e80e7fa35a3201ba030698b13d74efbdda /ansible/test/play-rke/molecule/default/molecule.yml
parentcb3f68d8bcecb6ff55b223d16e7f91c871fb30b6 (diff)
Add tests for rke playbook
This adds tests for the rke playbook. Change-Id: Idbb90bb9674d67c1877302877b60d3d60d44e36b Issue-ID: OOM-1907 Signed-off-by: Michal Zegan <m.zegan@samsung.com> Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/test/play-rke/molecule/default/molecule.yml')
-rw-r--r--ansible/test/play-rke/molecule/default/molecule.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/ansible/test/play-rke/molecule/default/molecule.yml b/ansible/test/play-rke/molecule/default/molecule.yml
new file mode 100644
index 00000000..b7e71bf5
--- /dev/null
+++ b/ansible/test/play-rke/molecule/default/molecule.yml
@@ -0,0 +1,55 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint:
+ name: yamllint
+platforms:
+ - name: infrastructure-server
+ image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
+ pre_build_image: true
+ privileged: true
+ override_command: false
+ restart_policy: unless-stopped
+ volumes:
+ - /var/lib/docker
+ - /var/lib/kubelet
+ groups:
+ - infrastructure
+ - kubernetes-etcd
+ - kubernetes-control-plane
+ - kubernetes
+ networks:
+ - name: rke
+ purge_networks: true
+
+ - name: kubernetes-node-1
+ image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
+ pre_build_image: true
+ privileged: true
+ override_command: false
+ restart_policy: unless-stopped
+ volumes:
+ - /var/lib/docker
+ - /var/lib/kubelet
+ groups:
+ - kubernetes
+ - kubernetes-node
+ networks:
+ - name: rke
+ purge_networks: true
+
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+ lint:
+ name: ansible-lint
+scenario:
+ name: default
+verifier:
+ name: testinfra
+ lint:
+ name: flake8