mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2025-01-19 21:01:36 +01:00
WIP(molecule): default image no longer prebuilt to support alpine
This commit is contained in:
parent
291b7763b4
commit
f3640e5c9f
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@ -22,24 +22,31 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- distro: debian10
|
- distro: geerlingguy/docker-debian11-ansible:latest
|
||||||
scenario: default
|
scenario: default
|
||||||
- distro: ubuntu2004
|
prebuilt: 'true'
|
||||||
|
- distro: geerlingguy/docker-ubuntu2204-ansible:latest
|
||||||
scenario: default
|
scenario: default
|
||||||
- distro: amazonlinux2
|
prebuilt: 'true'
|
||||||
|
- distro: geerlingguy/docker-amazonlinux2-ansible:latest
|
||||||
scenario: default
|
scenario: default
|
||||||
- distro: ubuntu1804
|
prebuilt: 'true'
|
||||||
|
- distro: geerlingguy/docker-ubuntu2004-ansible:latest
|
||||||
scenario: default
|
scenario: default
|
||||||
- distro: fedora33
|
prebuilt: 'true'
|
||||||
|
- distro: geerlingguy/docker-fedora35-ansible:latest
|
||||||
scenario: nodeploy
|
scenario: nodeploy
|
||||||
- distro: fedora32
|
prebuilt: 'true'
|
||||||
|
- distro: geerlingguy/docker-fedora34-ansible:latest
|
||||||
scenario: highavailabilitydb
|
scenario: highavailabilitydb
|
||||||
- distro: fedora31
|
prebuilt: 'true'
|
||||||
|
- distro: geerlingguy/docker-fedora33-ansible:latest
|
||||||
scenario: autodeploy
|
scenario: autodeploy
|
||||||
- distro: debian11
|
- distro: alpine:3.15
|
||||||
scenario: highavailabilityetcd
|
scenario: highavailabilityetcd
|
||||||
- distro: rockylinux8
|
- distro: geerlingguy/docker-rockylinux8-ansible:latest
|
||||||
scenario: highavailabilityetcd
|
scenario: highavailabilityetcd
|
||||||
|
prebuilt: 'true'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout codebase
|
- name: Checkout codebase
|
||||||
@ -62,3 +69,4 @@ jobs:
|
|||||||
PY_COLORS: '1'
|
PY_COLORS: '1'
|
||||||
ANSIBLE_FORCE_COLOR: '1'
|
ANSIBLE_FORCE_COLOR: '1'
|
||||||
MOLECULE_DISTRO: ${{ matrix.distro }}
|
MOLECULE_DISTRO: ${{ matrix.distro }}
|
||||||
|
MOLECULE_PREBUILT: ${{ matrix.prebuilt }}
|
||||||
|
@ -26,30 +26,30 @@ lint: |
|
|||||||
ansible-lint --exclude molecule/
|
ansible-lint --exclude molecule/
|
||||||
platforms:
|
platforms:
|
||||||
- name: node1
|
- name: node1
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node2
|
- name: node2
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node3
|
- name: node3
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
provisioner:
|
provisioner:
|
||||||
|
@ -26,30 +26,30 @@ lint: |
|
|||||||
ansible-lint --exclude molecule/
|
ansible-lint --exclude molecule/
|
||||||
platforms:
|
platforms:
|
||||||
- name: node1
|
- name: node1
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node2
|
- name: node2
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node3
|
- name: node3
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
provisioner:
|
provisioner:
|
||||||
|
@ -26,30 +26,30 @@ lint: |
|
|||||||
ansible-lint --exclude molecule/
|
ansible-lint --exclude molecule/
|
||||||
platforms:
|
platforms:
|
||||||
- name: node1
|
- name: node1
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node2
|
- name: node2
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node3
|
- name: node3
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
provisioner:
|
provisioner:
|
||||||
|
@ -26,30 +26,30 @@ lint: |
|
|||||||
ansible-lint --exclude molecule/
|
ansible-lint --exclude molecule/
|
||||||
platforms:
|
platforms:
|
||||||
- name: node1
|
- name: node1
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node2
|
- name: node2
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node3
|
- name: node3
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: database
|
- name: database
|
||||||
|
@ -26,30 +26,30 @@ lint: |
|
|||||||
ansible-lint --exclude molecule/
|
ansible-lint --exclude molecule/
|
||||||
platforms:
|
platforms:
|
||||||
- name: node1
|
- name: node1
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node2
|
- name: node2
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node3
|
- name: node3
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: loadbalancer
|
- name: loadbalancer
|
||||||
|
@ -26,30 +26,30 @@ lint: |
|
|||||||
ansible-lint --exclude molecule/
|
ansible-lint --exclude molecule/
|
||||||
platforms:
|
platforms:
|
||||||
- name: node1
|
- name: node1
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node2
|
- name: node2
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
- name: node3
|
- name: node3
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
image: "${MOLECULE_DISTRO:-ubuntu:focal}"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
pre_build_image: ${MOLECULE_PREBUILT:-false}
|
||||||
networks:
|
networks:
|
||||||
- name: k3snet
|
- name: k3snet
|
||||||
provisioner:
|
provisioner:
|
||||||
|
Loading…
Reference in New Issue
Block a user