zabbix: Move commonly used docs to doc fragments (#31833)

* Move commonly used configuration parameter documentation for zabbix_*-modules to cental doc fragment

* fix indentation
This commit is contained in:
Eike Frost 2017-10-17 17:03:51 +02:00 committed by René Moser
parent ee4e1be7cd
commit 0a89873df9
6 changed files with 30 additions and 150 deletions

View file

@ -29,42 +29,12 @@ requirements:
- "python >= 2.6" - "python >= 2.6"
- zabbix-api - zabbix-api
options: options:
server_url:
description:
- Url of Zabbix server, with protocol (http or https).
C(url) is an alias for C(server_url).
required: true
aliases: [ "url" ]
login_user:
description:
- Zabbix user name.
required: true
login_password:
description:
- Zabbix user password.
required: true
http_login_user:
description:
- Basic Auth login
required: false
default: None
version_added: "2.1"
http_login_password:
description:
- Basic Auth password
required: false
default: None
version_added: "2.1"
state: state:
description: description:
- Create or delete host group. - Create or delete host group.
required: false required: false
default: "present" default: "present"
choices: [ "present", "absent" ] choices: [ "present", "absent" ]
timeout:
description:
- The timeout of API request(seconds).
default: 10
host_groups: host_groups:
description: description:
- List of host groups to create or delete. - List of host groups to create or delete.

View file

@ -29,31 +29,6 @@ requirements:
- "python >= 2.6" - "python >= 2.6"
- "zabbix-api >= 0.5.3" - "zabbix-api >= 0.5.3"
options: options:
server_url:
description:
- Url of Zabbix server, with protocol (http or https).
required: true
aliases: [ "url" ]
login_user:
description:
- Zabbix user name, used to authenticate against the server.
required: true
login_password:
description:
- Zabbix user password.
required: true
http_login_user:
description:
- Basic Auth login
required: false
default: None
version_added: "2.1"
http_login_password:
description:
- Basic Auth password
required: false
default: None
version_added: "2.1"
host_name: host_name:
description: description:
- Name of the host in Zabbix. - Name of the host in Zabbix.
@ -99,10 +74,6 @@ options:
required: false required: false
choices: ['present', 'absent'] choices: ['present', 'absent']
default: "present" default: "present"
timeout:
description:
- The timeout of API request (seconds).
default: 10
proxy: proxy:
description: description:
- The name of the Zabbix Proxy to be used - The name of the Zabbix Proxy to be used

View file

@ -27,31 +27,6 @@ requirements:
- "python >= 2.6" - "python >= 2.6"
- zabbix-api - zabbix-api
options: options:
server_url:
description:
- Url of Zabbix server, with protocol (http or https).
required: true
aliases: [ "url" ]
login_user:
description:
- Zabbix user name.
required: true
login_password:
description:
- Zabbix user password.
required: true
http_login_user:
description:
- Basic Auth login
required: false
default: None
version_added: "2.1"
http_login_password:
description:
- Basic Auth password
required: false
default: None
version_added: "2.1"
host_name: host_name:
description: description:
- Name of the host. - Name of the host.
@ -72,10 +47,6 @@ options:
required: false required: false
choices: ['present', 'absent'] choices: ['present', 'absent']
default: "present" default: "present"
timeout:
description:
- The timeout of API request (seconds).
default: 10
extends_documentation_fragment: extends_documentation_fragment:
- zabbix - zabbix

View file

@ -31,33 +31,6 @@ options:
required: false required: false
default: present default: present
choices: [ "present", "absent" ] choices: [ "present", "absent" ]
server_url:
description:
- Url of Zabbix server, with protocol (http or https).
C(url) is an alias for C(server_url).
required: true
default: null
aliases: [ "url" ]
login_user:
description:
- Zabbix user name.
required: true
login_password:
description:
- Zabbix user password.
required: true
http_login_user:
description:
- Basic Auth login
required: false
default: None
version_added: "2.1"
http_login_password:
description:
- Basic Auth password
required: false
default: None
version_added: "2.1"
host_names: host_names:
description: description:
- Hosts to manage maintenance window for. - Hosts to manage maintenance window for.
@ -97,12 +70,6 @@ options:
- Type of maintenance. With data collection, or without. - Type of maintenance. With data collection, or without.
required: false required: false
default: "true" default: "true"
timeout:
description:
- The timeout of API request (seconds).
default: 10
version_added: "2.1"
required: false
extends_documentation_fragment: extends_documentation_fragment:
- zabbix - zabbix

View file

@ -28,35 +28,6 @@ requirements:
- "python >= 2.6" - "python >= 2.6"
- zabbix-api - zabbix-api
options: options:
server_url:
description:
- Url of Zabbix server, with protocol (http or https).
required: true
aliases: [ "url" ]
login_user:
description:
- Zabbix user name.
required: true
login_password:
description:
- Zabbix user password.
required: true
http_login_user:
description:
- Basic Auth login
required: false
default: None
version_added: "2.1"
http_login_password:
description:
- Basic Auth password
required: false
default: None
version_added: "2.1"
timeout:
description:
- The timeout of API request (seconds).
default: 10
screens: screens:
description: description:
- List of screens to be created/updated/deleted(see example). - List of screens to be created/updated/deleted(see example).

View file

@ -21,6 +21,36 @@ class ModuleDocFragment(object):
# Standard documentation fragment # Standard documentation fragment
DOCUMENTATION = ''' DOCUMENTATION = '''
options: options:
server_url:
description:
- Url of Zabbix server, with protocol (http or https).
C(url) is an alias for C(server_url).
required: true
aliases: [ "url" ]
login_user:
description:
- Zabbix user name.
required: true
login_password:
description:
- Zabbix user password.
required: true
http_login_user:
description:
- Basic Auth login
required: false
default: None
version_added: "2.1"
http_login_password:
description:
- Basic Auth password
required: false
default: None
version_added: "2.1"
timeout:
description:
- The timeout of API request(seconds).
default: 10
validate_certs: validate_certs:
required: false required: false
description: description: