mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
* fixed validation-modules for plugins/modules/monitoring/bigpanda.py
* fixed validation-modules for plugins/modules/monitoring/circonus_annotation.py
* fixed validation-modules for plugins/modules/monitoring/honeybadger_deployment.py
* fixed validation-modules for plugins/modules/monitoring/icinga2_feature.py
* fixed validation-modules for plugins/modules/monitoring/icinga2_host.py
* fixed validation-modules for plugins/modules/monitoring/librato_annotation.py
* fixed validation-modules for plugins/modules/monitoring/logentries.py
* fixed validation-modules for plugins/modules/monitoring/logstash_plugin.py
* fixed validation-modules for plugins/modules/monitoring/newrelic_deployment.py
* fixed validation-modules for plugins/modules/monitoring/pagerduty_alert.py
* fixed validation-modules for plugins/modules/monitoring/pagerduty.py
* fixed validation-modules for plugins/modules/monitoring/pingdom.py
* fixed validation-modules for plugins/modules/monitoring/rollbar_deployment.py
* fixed validation-modules for plugins/modules/monitoring/spectrum_device.py
* fixed validation-modules for plugins/modules/monitoring/stackdriver.py
* fixed validation-modules for plugins/modules/monitoring/statusio_maintenance.py
* fixed validation-modules for plugins/modules/monitoring/uptimerobot.py
* fixed validation-modules for plugins/modules/monitoring/datadog/datadog_event.py
* fixed validation-modules for plugins/modules/monitoring/datadog/datadog_monitor.py
* fixed validation-modules for plugins/modules/monitoring/sensu/sensu_check.py
* fixed validation-modules for plugins/modules/monitoring/sensu/sensu_client.py
* fixed validation-modules for plugins/modules/monitoring/sensu/sensu_handler.py
* fixed validation-modules for plugins/modules/monitoring/sensu/sensu_silence.py
* fixed validation-modules for plugins/modules/monitoring/sensu/sensu_subscription.py
* fixed trailing space
* Enabling validation-modules for monitoring modules
* Added line for 2.9
* Update plugins/modules/monitoring/icinga2_host.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/monitoring/datadog/datadog_event.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Suggestion from PR
* oops, missed the 2.11 ignore file
* Update plugins/modules/monitoring/icinga2_host.py
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit ce5fc7764a)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -19,9 +19,9 @@ description:
|
||||
author: "Jurgen Brand (@t794104)"
|
||||
options:
|
||||
url:
|
||||
type: str
|
||||
description:
|
||||
- HTTP, HTTPS, or FTP URL in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path
|
||||
required: true
|
||||
use_proxy:
|
||||
description:
|
||||
- If C(no), it will not use a proxy, even if one is defined in
|
||||
@@ -35,10 +35,12 @@ options:
|
||||
type: bool
|
||||
default: 'yes'
|
||||
url_username:
|
||||
type: str
|
||||
description:
|
||||
- The username for use in HTTP basic authentication.
|
||||
- This parameter can be used without C(url_password) for sites that allow empty passwords.
|
||||
url_password:
|
||||
type: str
|
||||
description:
|
||||
- The password for use in HTTP basic authentication.
|
||||
- If the C(url_username) parameter is not specified, the C(url_password) parameter will not be used.
|
||||
@@ -51,46 +53,58 @@ options:
|
||||
type: bool
|
||||
default: 'no'
|
||||
client_cert:
|
||||
type: path
|
||||
description:
|
||||
- PEM formatted certificate chain file to be used for SSL client
|
||||
authentication. This file can also include the key as well, and if
|
||||
the key is included, C(client_key) is not required.
|
||||
client_key:
|
||||
type: path
|
||||
description:
|
||||
- PEM formatted file that contains your private key to be used for SSL
|
||||
client authentication. If C(client_cert) contains both the certificate
|
||||
and key, this option is not required.
|
||||
state:
|
||||
type: str
|
||||
description:
|
||||
- Apply feature state.
|
||||
choices: [ "present", "absent" ]
|
||||
default: present
|
||||
name:
|
||||
type: str
|
||||
description:
|
||||
- Name used to create / delete the host. This does not need to be the FQDN, but does needs to be unique.
|
||||
required: true
|
||||
zone:
|
||||
type: str
|
||||
description:
|
||||
- The zone from where this host should be polled.
|
||||
template:
|
||||
type: str
|
||||
description:
|
||||
- The template used to define the host.
|
||||
- Template cannot be modified after object creation.
|
||||
check_command:
|
||||
type: str
|
||||
description:
|
||||
- The command used to check if the host is alive.
|
||||
default: "hostalive"
|
||||
display_name:
|
||||
type: str
|
||||
description:
|
||||
- The name used to display the host.
|
||||
default: if none is give it is the value of the <name> parameter
|
||||
- If not specified, it defaults to the value of the I(name) parameter.
|
||||
ip:
|
||||
type: str
|
||||
description:
|
||||
- The IP address of the host.
|
||||
required: true
|
||||
variables:
|
||||
type: dict
|
||||
description:
|
||||
- List of variables.
|
||||
extends_documentation_fragment:
|
||||
- url
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
@@ -211,8 +225,6 @@ class icinga2_api:
|
||||
def main():
|
||||
# use the predefined argument spec for url
|
||||
argument_spec = url_argument_spec()
|
||||
# remove unnecessary argument 'force'
|
||||
del argument_spec['force']
|
||||
# add our own arguments
|
||||
argument_spec.update(
|
||||
state=dict(default="present", choices=["absent", "present"]),
|
||||
@@ -234,8 +246,7 @@ def main():
|
||||
state = module.params["state"]
|
||||
name = module.params["name"]
|
||||
zone = module.params["zone"]
|
||||
template = []
|
||||
template.append(name)
|
||||
template = [name]
|
||||
if module.params["template"]:
|
||||
template.append(module.params["template"])
|
||||
check_command = module.params["check_command"]
|
||||
|
||||
Reference in New Issue
Block a user