mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Apply code review suggestions
This commit is contained in:
parent
9db3f09be7
commit
6f2a8553ee
1 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,13 @@ module: pacemaker_stonith
|
||||||
short_description: Manage pacemaker STONITH
|
short_description: Manage pacemaker STONITH
|
||||||
author:
|
author:
|
||||||
- Dexter Le (@munchtoast)
|
- Dexter Le (@munchtoast)
|
||||||
version_added: 11.1.0
|
version_added: 11.2.0
|
||||||
description:
|
description:
|
||||||
- This module manages STONITH in a Pacemaker cluster using the pacemaker CLI.
|
- This module manages STONITH in a Pacemaker cluster using the pacemaker CLI.
|
||||||
|
seealso:
|
||||||
|
- name: Pacemaker STONITH documentation
|
||||||
|
description: Complete documentation for Pacemaker STONITH.
|
||||||
|
link: https://clusterlabs.org/projects/pacemaker/doc/3.0/Pacemaker_Explained/html/resources.html#stonith
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- community.general.attributes
|
- community.general.attributes
|
||||||
attributes:
|
attributes:
|
||||||
|
@ -122,8 +126,7 @@ from ansible_collections.community.general.plugins.module_utils.pacemaker import
|
||||||
class PacemakerStonith(StateModuleHelper):
|
class PacemakerStonith(StateModuleHelper):
|
||||||
module = dict(
|
module = dict(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(type='str', default='present', choices=[
|
state=dict(type='str', default='present', choices=['present', 'absent', 'enabled', 'disabled']),
|
||||||
'present', 'absent', 'enabled', 'disabled']),
|
|
||||||
name=dict(type='str', required=True),
|
name=dict(type='str', required=True),
|
||||||
stonith_type=dict(type='str'),
|
stonith_type=dict(type='str'),
|
||||||
stonith_options=dict(type='list', elements='str', default=[]),
|
stonith_options=dict(type='list', elements='str', default=[]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue