Skip to content

Conversation

@LuisDuarte1
Copy link
Member

In niployments we now gain the capability of adding new storage nodes that use zfs and nfs in the background. This also deploys nfs-subdir-external-provisioner to ensure that it is exported to k8s

- name: Use storage definition for node
ansible.builtin.set_fact:
zfs_pool_devices: "{{ storage_definitions[inventory_hostname] }}"
- name: Enable EPEL repository

Check failure

Code scanning / ansible-lint

Use FQCN for builtin module actions (ansible.builtin.yum).

Use `ansible.builtin.dnf` or `ansible.legacy.dnf` instead.
ansible.builtin.rpm_key:
state: present
key: https://raw.githubusercontent.com/zfsonlinux/zfsonlinux.github.com/master/zfs-release/RPM-GPG-KEY-openzfs-key2
- name: Install DKMS manually

Check failure

Code scanning / ansible-lint

Use FQCN for builtin module actions (ansible.builtin.yum).

Use `ansible.builtin.dnf` or `ansible.legacy.dnf` instead.
ansible.builtin.yum:
name: dkms
state: present
- name: Install zfs repo

Check failure

Code scanning / ansible-lint

Use FQCN for builtin module actions (ansible.builtin.yum).

Use `ansible.builtin.dnf` or `ansible.legacy.dnf` instead.
- name: Install dkms modules
ansible.builtin.command: dkms autoinstall
changed_when: true
- name: Load ZFS kernel module

Check failure

Code scanning / ansible-lint

Use failed_when and specify error conditions instead of using ignore_errors.

Task/Handler: Load ZFS kernel module
- name: Install dkms modules
ansible.builtin.command: dkms autoinstall
changed_when: true
- name: Load ZFS kernel module

Check failure

Code scanning / ansible-lint

Commands should not change things if nothing needs doing.

Task/Handler: Load ZFS kernel module
ansible.builtin.command: modprobe zfs
failed_when: false
ignore_errors: true
- name: Check ZFS pool existance

Check failure

Code scanning / ansible-lint

Commands should not change things if nothing needs doing.

Task/Handler: Check ZFS pool existance
ignore_errors: true
failed_when: false

- name: Create ZFS pool

Check failure

Code scanning / ansible-lint

Commands should not change things if nothing needs doing.

Task/Handler: Create ZFS pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants