| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
# Copyright: (c) 2018, Dag Wieers (@dagwieers) <[email protected]> |
| 4 |
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 5 |
|
| 6 |
from __future__ import absolute_import, division, print_function |
| 7 |
|
| 8 |
__metaclass__ = type |
| 9 |
|
| 10 |
|
| 11 |
class ModuleDocFragment(object): |
| 12 |
# Standard files documentation fragment |
| 13 |
DOCUMENTATION = r""" |
| 14 |
options: |
| 15 |
host: |
| 16 |
description: |
| 17 |
- IP Address or hostname of the ACI Multi Site Orchestrator host. |
| 18 |
- If the value is not specified in the task, the value of environment variable C(MSO_HOST) will be used instead. |
| 19 |
type: str |
| 20 |
aliases: [ hostname ] |
| 21 |
port: |
| 22 |
description: |
| 23 |
- Port number to be used for the REST connection. |
| 24 |
- The default value depends on parameter `use_ssl`. |
| 25 |
- If the value is not specified in the task, the value of environment variable C(MSO_PORT) will be used instead. |
| 26 |
type: int |
| 27 |
username: |
| 28 |
description: |
| 29 |
- The username to use for authentication. |
| 30 |
- If the value is not specified in the task, the value of environment variables C(MSO_USERNAME) or C(ANSIBLE_NET_USERNAME) will be used instead. |
| 31 |
type: str |
| 32 |
password: |
| 33 |
description: |
| 34 |
- The password to use for authentication. |
| 35 |
- If the value is not specified in the task, the value of environment variables C(MSO_PASSWORD) or C(ANSIBLE_NET_PASSWORD) will be used instead. |
| 36 |
type: str |
| 37 |
output_level: |
| 38 |
description: |
| 39 |
- Influence the output of this MSO module. |
| 40 |
- C(normal) means the standard output, incl. C(current) dict |
| 41 |
- C(info) adds informational output, incl. C(previous), C(proposed) and C(sent) dicts |
| 42 |
- C(debug) adds debugging output, incl. C(filter_string), C(method), C(response), C(status) and C(url) information |
| 43 |
- If the value is not specified in the task, the value of environment variable C(MSO_OUTPUT_LEVEL) will be used instead. |
| 44 |
type: str |
| 45 |
choices: [ debug, info, normal ] |
| 46 |
default: normal |
| 47 |
timeout: |
| 48 |
description: |
| 49 |
- The socket level timeout in seconds. |
| 50 |
- The default value is 30 seconds. |
| 51 |
- If the value is not specified in the task, the value of environment variable C(MSO_TIMEOUT) will be used instead. |
| 52 |
type: int |
| 53 |
use_proxy: |
| 54 |
description: |
| 55 |
- If C(false), it will not use a proxy, even if one is defined in an environment variable on the target hosts. |
| 56 |
- If the value is not specified in the task, the value of environment variable C(MSO_USE_PROXY) will be used instead. |
| 57 |
- The default is C(true). |
| 58 |
type: bool |
| 59 |
use_ssl: |
| 60 |
description: |
| 61 |
- If C(false), an HTTP connection will be used instead of the default HTTPS connection. |
| 62 |
- If the value is not specified in the task, the value of environment variable C(MSO_USE_SSL) will be used instead. |
| 63 |
- When using a HTTPAPI connection plugin the inventory variable C(ansible_httpapi_use_ssl) will be used if this attribute is not specified. |
| 64 |
- The default is C(false) when using a HTTPAPI connection plugin (mso or nd) and C(true) when using the legacy connection method (only for mso). |
| 65 |
type: bool |
| 66 |
validate_certs: |
| 67 |
description: |
| 68 |
- If C(false), SSL certificates will not be validated. |
| 69 |
- This should only set to C(false) when used on personally controlled sites using self-signed certificates. |
| 70 |
- If the value is not specified in the task, the value of environment variable C(MSO_VALIDATE_CERTS) will be used instead. |
| 71 |
- The default is C(true). |
| 72 |
type: bool |
| 73 |
login_domain: |
| 74 |
description: |
| 75 |
- The login domain name to use for authentication. |
| 76 |
- The default value is Local. |
| 77 |
- If the value is not specified in the task, the value of environment variable C(MSO_LOGIN_DOMAIN) will be used instead. |
| 78 |
- When using a HTTPAPI connection plugin the inventory variable C(ansible_httpapi_login_domain) will be used if this attribute is not specified. |
| 79 |
type: str |
| 80 |
requirements: |
| 81 |
- Multi Site Orchestrator v2.1 or newer |
| 82 |
notes: |
| 83 |
- This module was written to support Multi Site Orchestrator v2.1 or newer. Some or all functionality may not work on earlier versions. |
| 84 |
""" |