mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-22 11:48:22 +01:00
add first draft for running molecule test with auto manifests deployments
This commit is contained in:
parent
b89f2f3acd
commit
2aedce0359
@ -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
|
||||
|
10
molecule/default/playbook-auto-deploying-manifests.yml
Normal file
10
molecule/default/playbook-auto-deploying-manifests.yml
Normal 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
|
4
molecule/default/templates/00-ns-monitoring.yml.j2
Normal file
4
molecule/default/templates/00-ns-monitoring.yml.j2
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: monitoring
|
Loading…
Reference in New Issue
Block a user