fix(molecule): fix rockylinux test, add debian11 fix snapshotter

This commit is contained in:
Xan Manning 2021-12-18 23:04:24 +00:00
parent ea413afa3a
commit 80f591cba4
9 changed files with 19 additions and 1 deletions

View File

@ -38,7 +38,7 @@ jobs:
scenario: highavailabilitydb
- distro: fedora31
scenario: autodeploy
- distro: debian9
- distro: debian11
scenario: highavailabilityetcd
- distro: rockylinux8
scenario: highavailabilityetcd

View File

@ -11,6 +11,8 @@
k3s_server:
data-dir: /var/lib/k3s-io
default-local-storage-path: /var/lib/k3s-io/local-storage
k3s_agent:
snapshotter: native
k3s_server_manifests_templates:
- "molecule/autodeploy/templates/00-ns-monitoring.yml.j2"
k3s_server_manifests_urls:

View File

@ -4,6 +4,8 @@
become: true
vars:
pyratlabs_issue_controller_dump: true
k3s_agent:
snapshotter: native
pre_tasks:
- name: Ensure k3s_debug is set
ansible.builtin.set_fact:

View File

@ -8,3 +8,5 @@
molecule_is_test: true
k3s_install_hard_links: true
k3s_release_version: stable
k3s_agent:
snapshotter: native

View File

@ -9,5 +9,6 @@
cluster-domain: examplecluster.local
k3s_agent:
docker: true
snapshotter: native
roles:
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"

View File

@ -8,6 +8,8 @@
k3s_registration_address: loadbalancer
k3s_server:
datastore-endpoint: "postgres://postgres:verybadpass@database:5432/postgres?sslmode=disable"
k3s_agent:
snapshotter: native
pre_tasks:
- name: Set each node to be a control node
ansible.builtin.set_fact:

View File

@ -11,6 +11,7 @@
secrets-encryption: true
k3s_agent:
node-ip: "{{ ansible_default_ipv4.address }}"
snapshotter: native
pre_tasks:
- name: Set each node to be a control node
ansible.builtin.set_fact:

View File

@ -37,3 +37,10 @@
ansible.builtin.apt:
update_cache: true
when: ansible_pkg_mgr == 'apt'
- name: Ensure iproute is installed
ansible.builtin.dnf:
name: iproute
state: present
update_cache: true
when: ansible_pkg_mgr == 'dnf'

View File

@ -6,3 +6,4 @@ node-label:
kubelet-arg:
- "cloud-provider=external"
- "provider-id=azure"
snapshotter: native