add first draft for running molecule test with auto manifests deployments

This commit is contained in:
nolte 2020-01-11 18:03:47 +01:00
parent b89f2f3acd
commit 2aedce0359
3 changed files with 18 additions and 0 deletions

View File

@ -34,6 +34,10 @@ env:
- MOLECULE_DISTRO: geerlingguy/docker-fedora31-ansible:latest
MOLECULE_PLAYBOOK: playbook-no-deploy.yml
# Test auto deploying manifests
- MOLECULE_DISTRO: geerlingguy/docker-ubuntu1804-ansible:latest
MOLECULE_PLAYBOOK: playbook-auto-deploying-manifests.yml
install:
# Install test dependencies.
- pip install molecule docker jmespath

View File

@ -0,0 +1,10 @@
---
- name: Converge
hosts: all
become: true
vars:
molecule_is_test: true
k3s_server_manifests_templates:
- "ns-monitoring.yml.j2"
roles:
- role: xanmanning.k3s

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: monitoring