Skip to content

ceph_config: add support for removing config options#29

Open
dagaaryan011 wants to merge 1 commit intoceph:mainfrom
dagaaryan011:main
Open

ceph_config: add support for removing config options#29
dagaaryan011 wants to merge 1 commit intoceph:mainfrom
dagaaryan011:main

Conversation

@dagaaryan011
Copy link

This PR adds support for removing Ceph configuration overrides via the
ceph_config Ansible module by introducing a new action: remove, which
invokes ceph config rm under the hood.

This allows users to explicitly delete existing configuration overrides
instead of overwriting them, enabling clean rollbacks to inherited or
default configuration values. The removal operation is implemented in an
idempotent manner: if no override exists for the given daemon and option,
the task is a no-op.

The implementation is consistent with existing command construction logic
(using build_base_cmd_shell) and fully respects Ansible check mode semantics,
ensuring that configuration removals can be safely previewed without
mutating cluster state.

Fixes #28.

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.

Add suport for parameter removal to "ceph_config" module.

1 participant