ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
830 stars 1.53k forks source link

zfs module to handle 'inherit' and 'default' #7959

Open carpoon opened 9 months ago

carpoon commented 9 months ago

Summary

In zfs, different properties can have different values, but there are two special ones, that require special handling, inherit and default. To achieve idempotency and to have the ability to set all values for zfs properties, it's required to handle these special values.

Issue Type

Feature Idea

Component Name

zfs

Additional Information

Why is it needed:

The goal would be to a be able to write something like this:


- name: Create and set up a zfs filesystem
  zfs:
    name: "tank/example"
    state: present
    extra_zfs_properties:
      sync: "!default"
      compression: "!inherit"

Implementation details

If this behavior is acceptable, I'll create a PR with my modifications.

Code of Conduct

ansibullbot commented 9 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 9 months ago

cc @bcoca @fishman @jasperla @jpdasma @mator @scathatheworm @troy2914 @xen0l click here for bot help

carpoon commented 9 months ago

!component zfs

felixfontein commented 9 months ago

!component =plugins/modules/zfs.py

ansibullbot commented 9 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 9 months ago

cc @johanwiren click here for bot help