mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-28 12:48:06 +01:00
fix(molecule): fix rockylinux test, add debian11 fix snapshotter
This commit is contained in:
parent
dd3c460bfa
commit
df51a8aaec
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
scenario: highavailabilitydb
|
||||
- distro: fedora31
|
||||
scenario: autodeploy
|
||||
- distro: debian9
|
||||
- distro: debian11
|
||||
scenario: highavailabilityetcd
|
||||
- distro: rockylinux8
|
||||
scenario: highavailabilityetcd
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -8,3 +8,5 @@
|
||||
molecule_is_test: true
|
||||
k3s_install_hard_links: true
|
||||
k3s_release_version: stable
|
||||
k3s_agent:
|
||||
snapshotter: native
|
||||
|
@ -9,5 +9,6 @@
|
||||
cluster-domain: examplecluster.local
|
||||
k3s_agent:
|
||||
docker: true
|
||||
snapshotter: native
|
||||
roles:
|
||||
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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'
|
||||
|
@ -6,3 +6,4 @@ node-label:
|
||||
kubelet-arg:
|
||||
- "cloud-provider=external"
|
||||
- "provider-id=azure"
|
||||
snapshotter: native
|
||||
|
Loading…
Reference in New Issue
Block a user