|
| 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 | +__metaclass__ = type |
| 8 | + |
| 9 | + |
| 10 | +class ModuleDocFragment(object): |
| 11 | + # Standard files documentation fragment |
| 12 | + DOCUMENTATION = r''' |
| 13 | +options: |
| 14 | + host: |
| 15 | + description: |
| 16 | + - IP Address or hostname of the Nexus Dashboard (ND) host. |
| 17 | + - If the value is not specified in the task, the value of environment variable C(ND_HOST) will be used instead. |
| 18 | + type: str |
| 19 | + required: yes |
| 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(ND_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(ND_USERNAME) or C(ANSIBLE_NET_USERNAME) will be used instead. |
| 31 | + type: str |
| 32 | + default: admin |
| 33 | + password: |
| 34 | + description: |
| 35 | + - The password to use for authentication. |
| 36 | + - If the value is not specified in the task, the value of environment variables C(ND_PASSWORD) or C(ANSIBLE_NET_PASSWORD) will be used instead. |
| 37 | + type: str |
| 38 | + required: yes |
| 39 | + output_level: |
| 40 | + description: |
| 41 | + - Influence the output of this ND module. |
| 42 | + - C(normal) means the standard output, incl. C(current) dict |
| 43 | + - C(info) adds informational output, incl. C(previous), C(proposed) and C(sent) dicts |
| 44 | + - C(debug) adds debugging output, incl. C(filter_string), C(method), C(response), C(status) and C(url) information |
| 45 | + - If the value is not specified in the task, the value of environment variable C(ND_OUTPUT_LEVEL) will be used instead. |
| 46 | + type: str |
| 47 | + choices: [ debug, info, normal ] |
| 48 | + default: normal |
| 49 | + timeout: |
| 50 | + description: |
| 51 | + - The socket level timeout in seconds. |
| 52 | + - If the value is not specified in the task, the value of environment variable C(ND_TIMEOUT) will be used instead. |
| 53 | + type: int |
| 54 | + default: 30 |
| 55 | + use_proxy: |
| 56 | + description: |
| 57 | + - If C(no), it will not use a proxy, even if one is defined in an environment variable on the target hosts. |
| 58 | + - If the value is not specified in the task, the value of environment variable C(ND_USE_PROXY) will be used instead. |
| 59 | + type: bool |
| 60 | + default: yes |
| 61 | + use_ssl: |
| 62 | + description: |
| 63 | + - If C(no), an HTTP connection will be used instead of the default HTTPS connection. |
| 64 | + - If the value is not specified in the task, the value of environment variable C(ND_USE_SSL) will be used instead. |
| 65 | + type: bool |
| 66 | + default: yes |
| 67 | + validate_certs: |
| 68 | + description: |
| 69 | + - If C(no), SSL certificates will not be validated. |
| 70 | + - This should only set to C(no) when used on personally controlled sites using self-signed certificates. |
| 71 | + - If the value is not specified in the task, the value of environment variable C(ND_VALIDATE_CERTS) will be used instead. |
| 72 | + type: bool |
| 73 | + default: yes |
| 74 | + login_domain: |
| 75 | + description: |
| 76 | + - The login domain name to use for authentication. |
| 77 | + - The default value is Local. |
| 78 | + - If the value is not specified in the task, the value of environment variable C(ND_LOGIN_DOMAIN) will be used instead. |
| 79 | + type: str |
| 80 | +requirements: |
| 81 | +- Nexus Dashboard v2.0 or newer |
| 82 | +notes: |
| 83 | +- Please read the :ref:`nd_guide` for more detailed information on how to manage your ND infrastructure using Ansible. |
| 84 | +- This module was written to support Nexus Dashboard v2.0 or newer. Some or all functionality may not work on earlier versions. |
| 85 | +''' |
0 commit comments