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

This commit is contained in:
Xan Manning 2021-12-18 23:04:24 +00:00 committed by Curtis John
parent dd3c460bfa
commit df51a8aaec
9 changed files with 19 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -37,3 +37,10 @@
ansible.builtin.apt: ansible.builtin.apt:
update_cache: true update_cache: true
when: ansible_pkg_mgr == 'apt' 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: kubelet-arg:
- "cloud-provider=external" - "cloud-provider=external"
- "provider-id=azure" - "provider-id=azure"
snapshotter: native