2019-10-01 22:31:35 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# Thanks to geerlingguy!
|
|
|
|
|
|
|
|
language: python
|
|
|
|
services: docker
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- ROLE_NAME: k3s
|
|
|
|
matrix:
|
2019-12-09 14:53:42 +01:00
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-centos8-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-centos7-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-debian10-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-ubuntu1804-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora29-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora30-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora31-ansible:latest
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-amazonlinux2-ansible:latest
|
2019-10-01 22:31:35 +02:00
|
|
|
|
2019-10-26 23:49:48 +02:00
|
|
|
# Test installing docker
|
2019-12-09 14:53:42 +01:00
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-centos7-ansible:latest
|
2019-10-01 22:31:35 +02:00
|
|
|
MOLECULE_PLAYBOOK: playbook-docker.yml
|
2019-12-09 18:53:37 +01:00
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-ubuntu1804-ansible:latest
|
|
|
|
MOLECULE_PLAYBOOK: playbook-docker.yml
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-amazonlinux2-ansible:latest
|
|
|
|
MOLECULE_PLAYBOOK: playbook-docker.yml
|
2019-10-01 22:31:35 +02:00
|
|
|
|
2019-10-26 23:49:48 +02:00
|
|
|
# Test using alternate port and using wireguard as the flannel backend
|
2019-12-09 18:53:37 +01:00
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora31-ansible:latest
|
2019-10-26 23:49:48 +02:00
|
|
|
MOLECULE_PLAYBOOK: playbook-docker-altport-wireguard.yml
|
|
|
|
|
|
|
|
# Test disabling all deployments
|
2019-12-09 14:53:42 +01:00
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-fedora31-ansible:latest
|
2019-10-26 23:49:48 +02:00
|
|
|
MOLECULE_PLAYBOOK: playbook-no-deploy.yml
|
|
|
|
|
2020-01-11 18:03:47 +01:00
|
|
|
# Test auto deploying manifests
|
|
|
|
- MOLECULE_DISTRO: geerlingguy/docker-ubuntu1804-ansible:latest
|
|
|
|
MOLECULE_PLAYBOOK: playbook-auto-deploying-manifests.yml
|
|
|
|
|
2019-10-01 22:31:35 +02:00
|
|
|
install:
|
|
|
|
# Install test dependencies.
|
|
|
|
- pip install molecule docker jmespath
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
# Use actual Ansible Galaxy role name for the project directory.
|
|
|
|
- cd ../
|
|
|
|
- mv ansible-role-$ROLE_NAME xanmanning.$ROLE_NAME
|
|
|
|
- cd xanmanning.$ROLE_NAME
|
|
|
|
|
|
|
|
script:
|
|
|
|
# Run tests.
|
|
|
|
- molecule test
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|