1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-05 16:31:59 +00:00
community.general/plugins
Dexter 283d947f17
pacemaker_cluster: enhancements and add unit tests (#10227)
* feat(initial): Add unit tests and rewrite pacemaker_cluster

This commit introduces unit tests and pacemaker_cluster module rewrite
to use the pacemaker module utils.

* feat(cleanup): Various fixes and add resource state

This commit migrates the pacemaker_cluster's cleanup state to the
pacemaker_resource module. Additionally, the unit tests for
pacemaker_cluster have been corrected to proper mock run command order.

* doc(botmeta): Add author to pacemaker_cluster

* style(whitespace): Cleanup test files

* refactor(cleanup): Remove unused state value

* bug(fix): Parse apply_all as separate option

* refactor(review): Apply code review suggestions

This commit refactors breaking changes in pacemaker_cluster module into
deprecated features. The following will be scheduled for deprecation:
`state: cleanup` and `state: None`.

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* refactor(review): Additional review suggestions

* refactor(deprecations): Remove all deprecation changes

* refactor(review): Enhance rename changelog entry and fix empty string logic

* refactor(cleanup): Remove from pacemaker_resource

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* refactor(review): Add changelog and revert required name

* revert(default): Use default state=present

* Update changelogs/fragments/10227-pacemaker-cluster-and-resource-enhancement.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelog fragment.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-07-14 07:48:36 +02:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become fix style in plugins (#10302) 2025-07-02 01:15:50 +12:00
cache fix style in plugins (#10302) 2025-07-02 01:15:50 +12:00
callback logstash: Remove reference to Python 2 library (#10345) 2025-07-08 22:19:37 +02:00
connection incus_connection: Improve error handling (#10349) 2025-07-07 20:52:55 +02:00
doc_fragments fix style in plugins (#10302) 2025-07-02 01:15:50 +12:00
filter fix style in plugins (#10303) 2025-07-02 01:15:01 +12:00
inventory fix style in plugins (#10303) 2025-07-02 01:15:01 +12:00
lookup dependent lookup: avoid deprecated ansible-core 2.19 functionality (#10359) 2025-07-08 06:40:54 +02:00
module_utils pacemaker_cluster: enhancements and add unit tests (#10227) 2025-07-14 07:48:36 +02:00
modules pacemaker_cluster: enhancements and add unit tests (#10227) 2025-07-14 07:48:36 +02:00
plugin_utils Make ready for data tagging (#9833) 2025-04-14 19:04:26 +02:00
test Adjust YAML in plugin docs (#10234) 2025-06-16 17:46:01 +02:00