|
|
@ -61,13 +61,10 @@ options:
|
|
|
|
port:
|
|
|
|
port:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "Power management interface port."
|
|
|
|
- "Power management interface port."
|
|
|
|
slot:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- "Power management slot."
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "Dictionary of additional fence agent options."
|
|
|
|
- "Dictionary of additional fence agent options (including Power Management slot)."
|
|
|
|
- "Additional information about options can be found at U(https://fedorahosted.org/cluster/wiki/FenceArguments)."
|
|
|
|
- "Additional information about options can be found at U(https://github.com/ClusterLabs/fence-agents/blob/master/doc/FenceAgentAPI.md)."
|
|
|
|
encrypt_options:
|
|
|
|
encrypt_options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "If (true) options will be encrypted when send to agent."
|
|
|
|
- "If (true) options will be encrypted when send to agent."
|
|
|
@ -95,6 +92,20 @@ EXAMPLES = '''
|
|
|
|
port: 3333
|
|
|
|
port: 3333
|
|
|
|
type: ipmilan
|
|
|
|
type: ipmilan
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add fence agent to host 'myhost' using 'slot' option
|
|
|
|
|
|
|
|
- ovirt_host_pm:
|
|
|
|
|
|
|
|
name: myhost
|
|
|
|
|
|
|
|
address: 1.2.3.4
|
|
|
|
|
|
|
|
options:
|
|
|
|
|
|
|
|
myoption1: x
|
|
|
|
|
|
|
|
myoption2: y
|
|
|
|
|
|
|
|
slot: myslot
|
|
|
|
|
|
|
|
username: admin
|
|
|
|
|
|
|
|
password: admin
|
|
|
|
|
|
|
|
port: 3333
|
|
|
|
|
|
|
|
type: ipmilan
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove ipmilan fence agent with address 1.2.3.4 on host 'myhost'
|
|
|
|
# Remove ipmilan fence agent with address 1.2.3.4 on host 'myhost'
|
|
|
|
- ovirt_host_pm:
|
|
|
|
- ovirt_host_pm:
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
@ -190,7 +201,6 @@ def main():
|
|
|
|
type=dict(default=None),
|
|
|
|
type=dict(default=None),
|
|
|
|
port=dict(default=None, type='int'),
|
|
|
|
port=dict(default=None, type='int'),
|
|
|
|
order=dict(default=None, type='int'),
|
|
|
|
order=dict(default=None, type='int'),
|
|
|
|
slot=dict(default=None),
|
|
|
|
|
|
|
|
options=dict(default=None, type='dict'),
|
|
|
|
options=dict(default=None, type='dict'),
|
|
|
|
encrypt_options=dict(default=None, type='bool', aliases=['encrypt']),
|
|
|
|
encrypt_options=dict(default=None, type='bool', aliases=['encrypt']),
|
|
|
|
)
|
|
|
|
)
|
|
|
|