8000 community.general.pacemaker_cluster module enhancement and maintenance mode feature · Issue #10200 · ansible-collections/community.general · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
community.general.pacemaker_cluster module enhancement and maintenance mode feature #10200
Open
@munchtoast

Description

@munchtoast

Summary

Aligning community.general.pacemaker_cluster with the module utils for pacemaker will be helpful in maintaining the module. Unit tests should be added for the module, with the addition of supporting maintenance mode which can be beneficial for users that need to manage the cluster without enforcing pacemaker lifecycle.

In summary, the following action items associated with this issue:

  • Enhance pacemaker_cluster to utilize module_utils/pacemaker
  • Add feature for pacemaker_cluster which enables the module to manage maintenance mode for the cluster
  • Add unit tests for pacemaker_cluster
  • Potentially add in support for integration testing (This may or may not be possible? See below.)

Integration testing:

I initially wanted to add this for pacemaker_resource but was running into issues with setting the cluster up. I'm currently using pcs in a Vagrant test environment (with a docker image supporting pcs) so I believe there might be potential in enabling integration testing here. Furthermore, pacemaker_cluster can be useful for other pacemaker modules if integration testing is feasible.

Issue Type

Feature Idea

Component Name

pacemaker_cluster

Additional Information

The addition of a new state: maintenance:

- name: Enable maintenance mode
  community.general.pacemaker_cluster:
    state: maintenance

- name: Bring the cluster online and disable maintenance mode
  community.general.pacemaker_cluster:
    state: online

The idea is that maintenance mode can stop pacemaker lifecycle management. Additionally, bringing the cluster online implies that pacemaker can resume lifecycle management.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue/PR relates to a feature requestmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0