mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Clean up module documentation (#36909)
* Clean up module documentation This PR includes: - Removal of `default: None` (and variations) - Removal of `required: false` - Fixing booleans and `type: bool` where required * Fix remaining (new) validation issues
This commit is contained in:
@@ -28,13 +28,10 @@ version_added: "1.3"
|
||||
author:
|
||||
- "Artūras `arturaz` Šlajus (@arturaz)"
|
||||
- "Naoya Nakazawa (@n0ts)"
|
||||
notes: []
|
||||
requirements: []
|
||||
options:
|
||||
api_key:
|
||||
description: ["Your DataDog API key."]
|
||||
required: true
|
||||
default: null
|
||||
app_key:
|
||||
description: ["Your DataDog app key."]
|
||||
required: true
|
||||
@@ -42,47 +39,36 @@ options:
|
||||
title:
|
||||
description: ["The event title."]
|
||||
required: true
|
||||
default: null
|
||||
text:
|
||||
description: ["The body of the event."]
|
||||
required: true
|
||||
default: null
|
||||
date_happened:
|
||||
description:
|
||||
- POSIX timestamp of the event.
|
||||
- Default value is now.
|
||||
required: false
|
||||
default: now
|
||||
priority:
|
||||
description: ["The priority of the event."]
|
||||
required: false
|
||||
default: normal
|
||||
choices: [normal, low]
|
||||
host:
|
||||
description: ["Host name to associate with the event."]
|
||||
required: false
|
||||
default: "{{ ansible_hostname }}"
|
||||
version_added: "2.4"
|
||||
tags:
|
||||
description: ["Comma separated list of tags to apply to the event."]
|
||||
required: false
|
||||
default: null
|
||||
alert_type:
|
||||
description: ["Type of alert."]
|
||||
required: false
|
||||
default: info
|
||||
choices: ['error', 'warning', 'info', 'success']
|
||||
aggregation_key:
|
||||
description: ["An arbitrary string to use for aggregation."]
|
||||
required: false
|
||||
default: null
|
||||
validate_certs:
|
||||
description:
|
||||
- If C(no), SSL certificates will not be validated. This should only be used
|
||||
on personally controlled sites using self-signed certificates.
|
||||
required: false
|
||||
type: bool
|
||||
default: 'yes'
|
||||
choices: ['yes', 'no']
|
||||
version_added: 1.5.1
|
||||
'''
|
||||
|
||||
|
||||
@@ -36,20 +36,14 @@ options:
|
||||
choices: ['present', 'absent', 'mute', 'unmute']
|
||||
tags:
|
||||
description: ["A list of tags to associate with your monitor when creating or updating. This can help you categorize and filter monitors."]
|
||||
required: false
|
||||
default: None
|
||||
version_added: "2.2"
|
||||
type:
|
||||
description:
|
||||
- "The type of the monitor."
|
||||
- The 'event alert'is available starting at Ansible 2.1
|
||||
required: false
|
||||
default: null
|
||||
choices: ['metric alert', 'service check', 'event alert']
|
||||
query:
|
||||
description: ["The monitor query to notify on with syntax varying depending on what type of monitor you are creating."]
|
||||
required: false
|
||||
default: null
|
||||
name:
|
||||
description: ["The name of the alert."]
|
||||
required: true
|
||||
@@ -57,16 +51,13 @@ options:
|
||||
description:
|
||||
- A message to include with notifications for this monitor. Email notifications can be sent to specific users by using the same
|
||||
'@username' notation as events. Monitor message template variables can be accessed by using double square brackets, i.e '[[' and ']]'.
|
||||
required: false
|
||||
default: null
|
||||
silenced:
|
||||
description: ["Dictionary of scopes to timestamps or None. Each scope will be muted until the given POSIX timestamp or forever if the value is None. "]
|
||||
required: false
|
||||
default: ""
|
||||
notify_no_data:
|
||||
description: ["A boolean indicating whether this monitor will notify when data stops reporting.."]
|
||||
required: false
|
||||
default: False
|
||||
type: bool
|
||||
default: 'no'
|
||||
no_data_timeframe:
|
||||
description:
|
||||
- The number of minutes before a monitor will notify when data stops reporting. Must be at least 2x the monitor timeframe for metric
|
||||
@@ -75,52 +66,39 @@ options:
|
||||
default: 2x timeframe for metric, 2 minutes for service
|
||||
timeout_h:
|
||||
description: ["The number of hours of the monitor not reporting data before it will automatically resolve from a triggered state."]
|
||||
required: false
|
||||
default: null
|
||||
renotify_interval:
|
||||
description:
|
||||
- The number of minutes after the last notification before a monitor will re-notify on the current status. It will only re-notify if it's
|
||||
not resolved.
|
||||
required: false
|
||||
default: null
|
||||
escalation_message:
|
||||
description:
|
||||
- A message to include with a re-notification. Supports the '@username' notification we allow elsewhere. Not applicable if renotify_interval
|
||||
is None
|
||||
required: false
|
||||
default: null
|
||||
notify_audit:
|
||||
description: ["A boolean indicating whether tagged users will be notified on changes to this monitor."]
|
||||
required: false
|
||||
default: False
|
||||
type: bool
|
||||
default: 'no'
|
||||
thresholds:
|
||||
description:
|
||||
- A dictionary of thresholds by status. This option is only available for service checks and metric alerts. Because each of them can have
|
||||
multiple thresholds, we don't define them directly in the query."]
|
||||
required: false
|
||||
default: {'ok': 1, 'critical': 1, 'warning': 1}
|
||||
locked:
|
||||
description: ["A boolean indicating whether changes to this monitor should be restricted to the creator or admins."]
|
||||
required: false
|
||||
default: False
|
||||
type: bool
|
||||
default: 'no'
|
||||
version_added: "2.2"
|
||||
require_full_window:
|
||||
description:
|
||||
- A boolean indicating whether this monitor needs a full window of data before it's evaluated. We highly recommend you set this to False for
|
||||
sparse metrics, otherwise some evaluations will be skipped.
|
||||
required: false
|
||||
default: null
|
||||
version_added: "2.3"
|
||||
new_host_delay:
|
||||
description: ["A positive integer representing the number of seconds to wait before evaluating the monitor for new hosts.
|
||||
This gives the host time to fully initialize."]
|
||||
required: false
|
||||
default: null
|
||||
version_added: "2.4"
|
||||
id:
|
||||
description: ["The id of the alert. If set, will be used instead of the name to locate the alert."]
|
||||
required: false
|
||||
default: null
|
||||
version_added: "2.3"
|
||||
'''
|
||||
|
||||
|
||||
@@ -32,32 +32,23 @@ options:
|
||||
user:
|
||||
description:
|
||||
- The username of the person doing the deployment
|
||||
required: false
|
||||
default: None
|
||||
repo:
|
||||
description:
|
||||
- URL of the project repository
|
||||
required: false
|
||||
default: None
|
||||
revision:
|
||||
description:
|
||||
- A hash, number, tag, or other identifier showing what revision was deployed
|
||||
required: false
|
||||
default: None
|
||||
url:
|
||||
description:
|
||||
- Optional URL to submit the notification to.
|
||||
required: false
|
||||
default: "https://api.honeybadger.io/v1/deploys"
|
||||
validate_certs:
|
||||
description:
|
||||
- If C(no), SSL certificates for the target url will not be validated. This should only be used
|
||||
on personally controlled sites using self-signed certificates.
|
||||
required: false
|
||||
type: bool
|
||||
default: 'yes'
|
||||
choices: ['yes', 'no']
|
||||
|
||||
requirements: []
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -31,14 +31,14 @@ options:
|
||||
description:
|
||||
- If C(no), it will not use a proxy, even if one is defined in
|
||||
an environment variable on the target hosts.
|
||||
default: 'yes'
|
||||
type: bool
|
||||
default: 'yes'
|
||||
validate_certs:
|
||||
description:
|
||||
- If C(no), SSL certificates will not be validated. This should only be used
|
||||
on personally controlled sites using self-signed certificates.
|
||||
default: 'yes'
|
||||
type: bool
|
||||
default: 'yes'
|
||||
url_username:
|
||||
description:
|
||||
- The username for use in HTTP basic authentication.
|
||||
@@ -53,8 +53,8 @@ options:
|
||||
responds to an initial request with a 401 status. Since some basic auth services do not properly
|
||||
send a 401, logins will fail. This option forces the sending of the Basic authentication header
|
||||
upon initial request.
|
||||
default: 'no'
|
||||
type: bool
|
||||
default: 'no'
|
||||
client_cert:
|
||||
description:
|
||||
- PEM formatted certificate chain file to be used for SSL client
|
||||
@@ -68,7 +68,6 @@ options:
|
||||
state:
|
||||
description:
|
||||
- Apply feature state.
|
||||
required: false
|
||||
choices: [ "present", "absent" ]
|
||||
default: present
|
||||
name:
|
||||
@@ -82,17 +81,13 @@ options:
|
||||
description:
|
||||
- The template used to define the host.
|
||||
- Template cannot be modified after object creation.
|
||||
required: false
|
||||
default: None
|
||||
check_command:
|
||||
description:
|
||||
- The command used to check if the host is alive.
|
||||
required: false
|
||||
default: "hostalive"
|
||||
display_name:
|
||||
description:
|
||||
- The name used to display the host.
|
||||
required: false
|
||||
default: if none is give it is the value of the <name> parameter
|
||||
ip:
|
||||
description:
|
||||
@@ -101,8 +96,6 @@ options:
|
||||
variables:
|
||||
description:
|
||||
- List of variables.
|
||||
required: false
|
||||
default: None
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -50,7 +50,6 @@ options:
|
||||
NOTE Host and Hostgroup tasks should always be performed via delegate_to: localhost. There are no benefits to running these tasks on the
|
||||
remote host and doing so will typically cause problems.
|
||||
required: true
|
||||
default: null
|
||||
choices: ['collector', 'host', 'datsource', 'hostgroup']
|
||||
action:
|
||||
description:
|
||||
@@ -60,94 +59,76 @@ options:
|
||||
- "Update: Update properties, description, or groups (target=host) for an object in your LogicMonitor account."
|
||||
- "SDT: Schedule downtime for an object in your LogicMonitor account."
|
||||
required: true
|
||||
default: null
|
||||
choices: ['add', 'remove', 'update', 'sdt']
|
||||
company:
|
||||
description:
|
||||
- The LogicMonitor account company name. If you would log in to your account at "superheroes.logicmonitor.com" you would use "superheroes."
|
||||
required: true
|
||||
default: null
|
||||
user:
|
||||
description:
|
||||
- A LogicMonitor user name. The module will authenticate and perform actions on behalf of this user.
|
||||
required: true
|
||||
default: null
|
||||
password:
|
||||
description:
|
||||
- The password of the specified LogicMonitor user
|
||||
required: true
|
||||
default: null
|
||||
collector:
|
||||
description:
|
||||
- The fully qualified domain name of a collector in your LogicMonitor account.
|
||||
- This is required for the creation of a LogicMonitor host (target=host action=add).
|
||||
- This is required for updating, removing or scheduling downtime for hosts if 'displayname' isn't
|
||||
specified (target=host action=update action=remove action=sdt).
|
||||
required: false
|
||||
default: null
|
||||
hostname:
|
||||
description:
|
||||
- The hostname of a host in your LogicMonitor account, or the desired hostname of a device to manage.
|
||||
- Optional for managing hosts (target=host).
|
||||
required: false
|
||||
default: 'hostname -f'
|
||||
displayname:
|
||||
description:
|
||||
- The display name of a host in your LogicMonitor account or the desired display name of a device to manage.
|
||||
- Optional for managing hosts (target=host).
|
||||
required: false
|
||||
default: 'hostname -f'
|
||||
description:
|
||||
description:
|
||||
- The long text description of the object in your LogicMonitor account.
|
||||
- Optional for managing hosts and host groups (target=host or target=hostgroup; action=add or action=update).
|
||||
required: false
|
||||
default: ""
|
||||
properties:
|
||||
description:
|
||||
- A dictionary of properties to set on the LogicMonitor host or host group.
|
||||
- Optional for managing hosts and host groups (target=host or target=hostgroup; action=add or action=update).
|
||||
- This parameter will add or update existing properties in your LogicMonitor account.
|
||||
required: false
|
||||
default: {}
|
||||
groups:
|
||||
description:
|
||||
- A list of groups that the host should be a member of.
|
||||
- Optional for managing hosts (target=host; action=add or action=update).
|
||||
required: false
|
||||
default: []
|
||||
id:
|
||||
description:
|
||||
- ID of the datasource to target.
|
||||
- Required for management of LogicMonitor datasources (target=datasource).
|
||||
required: false
|
||||
default: null
|
||||
fullpath:
|
||||
description:
|
||||
- The fullpath of the host group object you would like to manage.
|
||||
- Recommend running on a single Ansible host.
|
||||
- Required for management of LogicMonitor host groups (target=hostgroup).
|
||||
required: false
|
||||
default: null
|
||||
alertenable:
|
||||
description:
|
||||
- A boolean flag to turn alerting on or off for an object.
|
||||
- Optional for managing all hosts (action=add or action=update).
|
||||
required: false
|
||||
default: true
|
||||
choices: [true, false]
|
||||
type: bool
|
||||
default: 'yes'
|
||||
starttime:
|
||||
description:
|
||||
- The time that the Scheduled Down Time (SDT) should begin.
|
||||
- Optional for managing SDT (action=sdt).
|
||||
- Y-m-d H:M
|
||||
required: false
|
||||
default: Now
|
||||
duration:
|
||||
description:
|
||||
- The duration (minutes) of the Scheduled Down Time (SDT).
|
||||
- Optional for putting an object into SDT (action=sdt).
|
||||
required: false
|
||||
default: 30
|
||||
...
|
||||
'''
|
||||
|
||||
@@ -29,49 +29,39 @@ options:
|
||||
description:
|
||||
- The LogicMonitor object you wish to manage.
|
||||
required: true
|
||||
default: null
|
||||
choices: ['host', 'hostgroup']
|
||||
company:
|
||||
description:
|
||||
- The LogicMonitor account company name. If you would log in to your account at "superheroes.logicmonitor.com" you would use "superheroes".
|
||||
required: true
|
||||
default: null
|
||||
user:
|
||||
description:
|
||||
- A LogicMonitor user name. The module will authenticate and perform actions on behalf of this user.
|
||||
required: true
|
||||
default: null
|
||||
password:
|
||||
description:
|
||||
- The password for the chosen LogicMonitor User.
|
||||
- If an md5 hash is used, the digest flag must be set to true.
|
||||
required: true
|
||||
default: null
|
||||
collector:
|
||||
description:
|
||||
- The fully qualified domain name of a collector in your LogicMonitor account.
|
||||
- This is optional for querying a LogicMonitor host when a displayname is specified.
|
||||
- This is required for querying a LogicMonitor host when a displayname is not specified.
|
||||
required: false
|
||||
default: null
|
||||
hostname:
|
||||
description:
|
||||
- The hostname of a host in your LogicMonitor account, or the desired hostname of a device to add into monitoring.
|
||||
- Required for managing hosts (target=host).
|
||||
required: false
|
||||
default: 'hostname -f'
|
||||
displayname:
|
||||
description:
|
||||
- The display name of a host in your LogicMonitor account or the desired display name of a device to add into monitoring.
|
||||
required: false
|
||||
default: 'hostname -f'
|
||||
fullpath:
|
||||
description:
|
||||
- The fullpath of the hostgroup object you would like to manage.
|
||||
- Recommend running on a single ansible host.
|
||||
- Required for management of LogicMonitor host groups (target=hostgroup).
|
||||
required: false
|
||||
default: null
|
||||
...
|
||||
'''
|
||||
|
||||
|
||||
@@ -28,30 +28,22 @@ options:
|
||||
state:
|
||||
description:
|
||||
- Apply plugin state.
|
||||
required: False
|
||||
choices: ["present", "absent"]
|
||||
default: present
|
||||
plugin_bin:
|
||||
description:
|
||||
- Specify logstash-plugin to use for plugin management.
|
||||
required: False
|
||||
default: /usr/share/logstash/bin/logstash-plugin
|
||||
proxy_host:
|
||||
description:
|
||||
- Proxy host to use during plugin installation.
|
||||
required: False
|
||||
default: None
|
||||
proxy_port:
|
||||
description:
|
||||
- Proxy port to use during plugin installation.
|
||||
required: False
|
||||
default: None
|
||||
version:
|
||||
description:
|
||||
- Specify plugin Version of the plugin to install.
|
||||
If plugin exists with previous version, it will NOT be updated.
|
||||
required: False
|
||||
default: None
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -25,22 +25,18 @@ options:
|
||||
description:
|
||||
- The name of the I(monit) program/process to manage
|
||||
required: true
|
||||
default: null
|
||||
state:
|
||||
description:
|
||||
- The state of service
|
||||
required: true
|
||||
default: null
|
||||
choices: [ "present", "started", "stopped", "restarted", "monitored", "unmonitored", "reloaded" ]
|
||||
timeout:
|
||||
description:
|
||||
- If there are pending actions for the service monitored by monit, then Ansible will check
|
||||
for up to this many seconds to verify the requested action has been performed.
|
||||
Ansible will sleep for five seconds between each check.
|
||||
required: false
|
||||
default: 300
|
||||
version_added: "2.1"
|
||||
requirements: [ ]
|
||||
author: "Darryl Stoflet (@dstoflet)"
|
||||
'''
|
||||
|
||||
|
||||
@@ -46,31 +46,25 @@ options:
|
||||
host:
|
||||
description:
|
||||
- Host to operate on in Nagios.
|
||||
required: false
|
||||
default: null
|
||||
cmdfile:
|
||||
description:
|
||||
- Path to the nagios I(command file) (FIFO pipe).
|
||||
Only required if auto-detection fails.
|
||||
required: false
|
||||
default: auto-detected
|
||||
author:
|
||||
description:
|
||||
- Author to leave downtime comments as.
|
||||
Only usable with the C(downtime) action.
|
||||
required: false
|
||||
default: Ansible
|
||||
comment:
|
||||
version_added: "2.0"
|
||||
description:
|
||||
- Comment for C(downtime) action.
|
||||
required: false
|
||||
default: Scheduling downtime
|
||||
minutes:
|
||||
description:
|
||||
- Minutes to schedule downtime for.
|
||||
- Only usable with the C(downtime) action.
|
||||
required: false
|
||||
default: 30
|
||||
services:
|
||||
description:
|
||||
|
||||
@@ -32,83 +32,53 @@ options:
|
||||
description:
|
||||
- Create a maintenance window or get a list of ongoing windows.
|
||||
required: true
|
||||
default: null
|
||||
choices: [ "running", "started", "ongoing", "absent" ]
|
||||
aliases: []
|
||||
name:
|
||||
description:
|
||||
- PagerDuty unique subdomain.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
user:
|
||||
description:
|
||||
- PagerDuty user ID.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
passwd:
|
||||
description:
|
||||
- PagerDuty user password.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
token:
|
||||
description:
|
||||
- A pagerduty token, generated on the pagerduty site. Can be used instead of
|
||||
user/passwd combination.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
version_added: '1.8'
|
||||
requester_id:
|
||||
description:
|
||||
- ID of user making the request. Only needed when using a token and creating a maintenance_window.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
version_added: '1.8'
|
||||
service:
|
||||
description:
|
||||
- A comma separated list of PagerDuty service IDs.
|
||||
required: false
|
||||
default: null
|
||||
choices: []
|
||||
aliases: [ services ]
|
||||
hours:
|
||||
description:
|
||||
- Length of maintenance window in hours.
|
||||
required: false
|
||||
default: 1
|
||||
choices: []
|
||||
aliases: []
|
||||
minutes:
|
||||
description:
|
||||
- Maintenance window in minutes (this is added to the hours).
|
||||
required: false
|
||||
default: 0
|
||||
choices: []
|
||||
aliases: []
|
||||
version_added: '1.8'
|
||||
desc:
|
||||
description:
|
||||
- Short description of maintenance window.
|
||||
required: false
|
||||
default: Created by Ansible
|
||||
choices: []
|
||||
aliases: []
|
||||
validate_certs:
|
||||
description:
|
||||
- If C(no), SSL certificates will not be validated. This should only be used
|
||||
on personally controlled sites using self-signed certificates.
|
||||
required: false
|
||||
type: bool
|
||||
default: 'yes'
|
||||
choices: ['yes', 'no']
|
||||
version_added: 1.5.1
|
||||
'''
|
||||
|
||||
|
||||
@@ -29,37 +29,23 @@ options:
|
||||
description:
|
||||
- Define whether or not the check should be running or paused.
|
||||
required: true
|
||||
default: null
|
||||
choices: [ "running", "paused" ]
|
||||
aliases: []
|
||||
checkid:
|
||||
description:
|
||||
- Pingdom ID of the check.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
uid:
|
||||
description:
|
||||
- Pingdom user ID.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
passwd:
|
||||
description:
|
||||
- Pingdom user password.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
key:
|
||||
description:
|
||||
- Pingdom API key.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
notes:
|
||||
- This module does not yet have support to add/remove checks.
|
||||
'''
|
||||
|
||||
@@ -33,22 +33,19 @@ options:
|
||||
description:
|
||||
- Whether the check should be present or not
|
||||
choices: [ 'present', 'absent' ]
|
||||
required: false
|
||||
default: present
|
||||
path:
|
||||
description:
|
||||
- Path to the json file of the check to be added/removed.
|
||||
- Will be created if it does not exist (unless I(state=absent)).
|
||||
- The parent folders need to exist when I(state=present), otherwise an error will be thrown
|
||||
required: false
|
||||
default: /etc/sensu/conf.d/checks.json
|
||||
backup:
|
||||
description:
|
||||
- Create a backup file (if yes), including the timestamp information so
|
||||
- you can get the original file back if you somehow clobbered it incorrectly.
|
||||
choices: [ 'yes', 'no' ]
|
||||
required: false
|
||||
default: no
|
||||
type: bool
|
||||
default: 'no'
|
||||
command:
|
||||
description:
|
||||
- Path to the sensu check to run (not required when I(state=absent))
|
||||
@@ -56,113 +53,85 @@ options:
|
||||
handlers:
|
||||
description:
|
||||
- List of handlers to notify when the check fails
|
||||
required: false
|
||||
default: []
|
||||
subscribers:
|
||||
description:
|
||||
- List of subscribers/channels this check should run for
|
||||
- See sensu_subscribers to subscribe a machine to a channel
|
||||
required: false
|
||||
default: []
|
||||
interval:
|
||||
description:
|
||||
- Check interval in seconds
|
||||
required: false
|
||||
default: null
|
||||
timeout:
|
||||
description:
|
||||
- Timeout for the check
|
||||
required: false
|
||||
default: 10
|
||||
ttl:
|
||||
description:
|
||||
- Time to live in seconds until the check is considered stale
|
||||
required: false
|
||||
default: null
|
||||
version_added: 2.4
|
||||
handle:
|
||||
description:
|
||||
- Whether the check should be handled or not
|
||||
choices: [ 'yes', 'no' ]
|
||||
required: false
|
||||
default: yes
|
||||
type: bool
|
||||
default: 'yes'
|
||||
subdue_begin:
|
||||
description:
|
||||
- When to disable handling of check failures
|
||||
required: false
|
||||
default: null
|
||||
subdue_end:
|
||||
description:
|
||||
- When to enable handling of check failures
|
||||
required: false
|
||||
default: null
|
||||
dependencies:
|
||||
description:
|
||||
- Other checks this check depends on, if dependencies fail,
|
||||
- handling of this check will be disabled
|
||||
required: false
|
||||
default: []
|
||||
metric:
|
||||
description:
|
||||
- Whether the check is a metric
|
||||
choices: [ 'yes', 'no' ]
|
||||
required: false
|
||||
default: no
|
||||
type: bool
|
||||
default: 'no'
|
||||
standalone:
|
||||
description:
|
||||
- Whether the check should be scheduled by the sensu client or server
|
||||
- This option obviates the need for specifying the I(subscribers) option
|
||||
choices: [ 'yes', 'no' ]
|
||||
required: false
|
||||
default: no
|
||||
type: bool
|
||||
default: 'no'
|
||||
publish:
|
||||
description:
|
||||
- Whether the check should be scheduled at all.
|
||||
- You can still issue it via the sensu api
|
||||
choices: [ 'yes', 'no' ]
|
||||
required: false
|
||||
default: yes
|
||||
type: bool
|
||||
default: 'yes'
|
||||
occurrences:
|
||||
description:
|
||||
- Number of event occurrences before the handler should take action
|
||||
required: false
|
||||
default: 1
|
||||
refresh:
|
||||
description:
|
||||
- Number of seconds handlers should wait before taking second action
|
||||
required: false
|
||||
default: null
|
||||
aggregate:
|
||||
description:
|
||||
- Classifies the check as an aggregate check,
|
||||
- making it available via the aggregate API
|
||||
choices: [ 'yes', 'no' ]
|
||||
required: false
|
||||
default: no
|
||||
type: bool
|
||||
default: 'no'
|
||||
low_flap_threshold:
|
||||
description:
|
||||
- The low threshold for flap detection
|
||||
required: false
|
||||
default: null
|
||||
high_flap_threshold:
|
||||
description:
|
||||
- The high threshold for flap detection
|
||||
required: false
|
||||
default: null
|
||||
custom:
|
||||
version_added: "2.1"
|
||||
description:
|
||||
- A hash/dictionary of custom parameters for mixing to the configuration.
|
||||
- You can't rewrite others module parameters using this
|
||||
required: false
|
||||
default: {}
|
||||
source:
|
||||
version_added: "2.1"
|
||||
description:
|
||||
- The check source, used to create a JIT Sensu client for an external resource (e.g. a network switch).
|
||||
required: false
|
||||
default: null
|
||||
requirements: [ ]
|
||||
author: "Anders Ingemann (@andsens)"
|
||||
'''
|
||||
|
||||
|
||||
@@ -24,17 +24,14 @@ options:
|
||||
description:
|
||||
- Whether the client should be present or not
|
||||
choices: [ 'present', 'absent' ]
|
||||
required: False
|
||||
default: present
|
||||
name:
|
||||
description:
|
||||
- A unique name for the client. The name cannot contain special characters or spaces.
|
||||
required: False
|
||||
default: System hostname as determined by Ruby Socket.gethostname (provided by Sensu)
|
||||
address:
|
||||
description:
|
||||
- An address to help identify and reach the client. This is only informational, usually an IP address or hostname.
|
||||
required: False
|
||||
default: Non-loopback IPv4 address as determined by Ruby Socket.ip_address_list (provided by Sensu)
|
||||
subscriptions:
|
||||
description:
|
||||
@@ -42,73 +39,50 @@ options:
|
||||
- These subscriptions determine which monitoring checks are executed by the client, as check requests are sent to subscriptions.
|
||||
- The subscriptions array items must be strings.
|
||||
required: True
|
||||
default: null
|
||||
safe_mode:
|
||||
description:
|
||||
- If safe mode is enabled for the client. Safe mode requires local check definitions in order to accept a check request and execute the check.
|
||||
choices: [ 'true', 'false' ]
|
||||
required: False
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
redact:
|
||||
description:
|
||||
- Client definition attributes to redact (values) when logging and sending client keepalives.
|
||||
required: False
|
||||
default: null
|
||||
socket:
|
||||
description:
|
||||
- The socket definition scope, used to configure the Sensu client socket.
|
||||
required: False
|
||||
default: null
|
||||
keepalives:
|
||||
description:
|
||||
- If Sensu should monitor keepalives for this client.
|
||||
choices: [ 'true', 'false' ]
|
||||
required: False
|
||||
default: true
|
||||
type: bool
|
||||
default: 'yes'
|
||||
keepalive:
|
||||
description:
|
||||
- The keepalive definition scope, used to configure Sensu client keepalives behavior (e.g. keepalive thresholds, etc).
|
||||
required: False
|
||||
default: null
|
||||
registration:
|
||||
description:
|
||||
- The registration definition scope, used to configure Sensu registration event handlers.
|
||||
required: False
|
||||
default: null
|
||||
deregister:
|
||||
description:
|
||||
- If a deregistration event should be created upon Sensu client process stop.
|
||||
choices: [ 'true', 'false' ]
|
||||
required: False
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
deregistration:
|
||||
description:
|
||||
- The deregistration definition scope, used to configure automated Sensu client de-registration.
|
||||
required: False
|
||||
default: null
|
||||
ec2:
|
||||
description:
|
||||
- The ec2 definition scope, used to configure the Sensu Enterprise AWS EC2 integration (Sensu Enterprise users only).
|
||||
required: False
|
||||
default: null
|
||||
chef:
|
||||
description:
|
||||
- The chef definition scope, used to configure the Sensu Enterprise Chef integration (Sensu Enterprise users only).
|
||||
required: False
|
||||
default: null
|
||||
puppet:
|
||||
description:
|
||||
- The puppet definition scope, used to configure the Sensu Enterprise Puppet integration (Sensu Enterprise users only).
|
||||
required: False
|
||||
default: null
|
||||
servicenow:
|
||||
description:
|
||||
- The servicenow definition scope, used to configure the Sensu Enterprise ServiceNow integration (Sensu Enterprise users only).
|
||||
required: False
|
||||
default: null
|
||||
notes:
|
||||
- Check mode is supported
|
||||
requirements: [ ]
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -24,87 +24,66 @@ options:
|
||||
description:
|
||||
- Whether the handler should be present or not
|
||||
choices: [ 'present', 'absent' ]
|
||||
required: False
|
||||
default: present
|
||||
name:
|
||||
description:
|
||||
- A unique name for the handler. The name cannot contain special characters or spaces.
|
||||
required: True
|
||||
default: null
|
||||
type:
|
||||
description:
|
||||
- The handler type
|
||||
choices: [ 'pipe', 'tcp', 'udp', 'transport', 'set' ]
|
||||
required: True
|
||||
default: null
|
||||
filter:
|
||||
description:
|
||||
- The Sensu event filter (name) to use when filtering events for the handler.
|
||||
required: False
|
||||
default: null
|
||||
filters:
|
||||
description:
|
||||
- An array of Sensu event filters (names) to use when filtering events for the handler.
|
||||
- Each array item must be a string.
|
||||
required: False
|
||||
default: null
|
||||
severities:
|
||||
description:
|
||||
- An array of check result severities the handler will handle.
|
||||
- 'NOTE: event resolution bypasses this filtering.'
|
||||
choices: [ 'warning', 'critical', 'unknown' ]
|
||||
required: False
|
||||
default: null
|
||||
mutator:
|
||||
description:
|
||||
- The Sensu event mutator (name) to use to mutate event data for the handler.
|
||||
required: False
|
||||
default: null
|
||||
timeout:
|
||||
description:
|
||||
- The handler execution duration timeout in seconds (hard stop).
|
||||
- Only used by pipe and tcp handler types.
|
||||
required: False
|
||||
default: 10
|
||||
handle_silenced:
|
||||
description:
|
||||
- If events matching one or more silence entries should be handled.
|
||||
required: False
|
||||
default: False
|
||||
type: bool
|
||||
default: 'no'
|
||||
handle_flapping:
|
||||
description:
|
||||
- If events in the flapping state should be handled.
|
||||
required: False
|
||||
default: False
|
||||
type: bool
|
||||
default: 'no'
|
||||
command:
|
||||
description:
|
||||
- The handler command to be executed.
|
||||
- The event data is passed to the process via STDIN.
|
||||
- 'NOTE: the command attribute is only required for Pipe handlers (i.e. handlers configured with "type": "pipe").'
|
||||
required: False
|
||||
default: null
|
||||
socket:
|
||||
description:
|
||||
- The socket definition scope, used to configure the TCP/UDP handler socket.
|
||||
- 'NOTE: the socket attribute is only required for TCP/UDP handlers (i.e. handlers configured with "type": "tcp" or "type": "udp").'
|
||||
required: False
|
||||
default: null
|
||||
pipe:
|
||||
description:
|
||||
- The pipe definition scope, used to configure the Sensu transport pipe.
|
||||
- 'NOTE: the pipe attribute is only required for Transport handlers (i.e. handlers configured with "type": "transport").'
|
||||
required: False
|
||||
default: null
|
||||
handlers:
|
||||
description:
|
||||
- An array of Sensu event handlers (names) to use for events using the handler set.
|
||||
- Each array item must be a string.
|
||||
- 'NOTE: the handlers attribute is only required for handler sets (i.e. handlers configured with "type": "set").'
|
||||
required: True
|
||||
default: null
|
||||
notes:
|
||||
- Check mode is supported
|
||||
requirements: [ ]
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -25,59 +25,41 @@ options:
|
||||
description:
|
||||
- API key.
|
||||
required: true
|
||||
default: null
|
||||
event:
|
||||
description:
|
||||
- The type of event to send, either annotation or deploy
|
||||
choices: ['annotation', 'deploy']
|
||||
required: false
|
||||
default: null
|
||||
revision_id:
|
||||
description:
|
||||
- The revision of the code that was deployed. Required for deploy events
|
||||
required: false
|
||||
default: null
|
||||
deployed_by:
|
||||
description:
|
||||
- The person or robot responsible for deploying the code
|
||||
required: false
|
||||
default: "Ansible"
|
||||
deployed_to:
|
||||
description:
|
||||
- "The environment code was deployed to. (ie: development, staging, production)"
|
||||
required: false
|
||||
default: null
|
||||
repository:
|
||||
description:
|
||||
- The repository (or project) deployed
|
||||
required: false
|
||||
default: null
|
||||
msg:
|
||||
description:
|
||||
- The contents of the annotation message, in plain text. Limited to 256 characters. Required for annotation.
|
||||
required: false
|
||||
default: null
|
||||
annotated_by:
|
||||
description:
|
||||
- The person or robot who the annotation should be attributed to.
|
||||
required: false
|
||||
default: "Ansible"
|
||||
level:
|
||||
description:
|
||||
- one of INFO/WARN/ERROR, defaults to INFO if not supplied. May affect display.
|
||||
choices: ['INFO', 'WARN', 'ERROR']
|
||||
required: false
|
||||
default: 'INFO'
|
||||
instance_id:
|
||||
description:
|
||||
- id of an EC2 instance that this event should be attached to, which will limit the contexts where this event is shown
|
||||
required: false
|
||||
default: null
|
||||
event_epoch:
|
||||
description:
|
||||
- "Unix timestamp of where the event should appear in the timeline, defaults to now. Be careful with this."
|
||||
required: false
|
||||
default: null
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -30,17 +30,14 @@ options:
|
||||
title:
|
||||
description:
|
||||
- A descriptive title for the maintenance window
|
||||
required: false
|
||||
default: "A new maintenance window"
|
||||
desc:
|
||||
description:
|
||||
- Message describing the maintenance window
|
||||
required: false
|
||||
default: "Created by Ansible"
|
||||
state:
|
||||
description:
|
||||
- Desired state of the package.
|
||||
required: false
|
||||
default: "present"
|
||||
choices: ["present", "absent"]
|
||||
api_id:
|
||||
@@ -58,73 +55,61 @@ options:
|
||||
url:
|
||||
description:
|
||||
- Status.io API URL. A private apiary can be used instead.
|
||||
required: false
|
||||
default: "https://api.status.io"
|
||||
components:
|
||||
description:
|
||||
- The given name of your component (server name)
|
||||
required: false
|
||||
aliases: ['component']
|
||||
default: None
|
||||
containers:
|
||||
description:
|
||||
- The given name of your container (data center)
|
||||
required: false
|
||||
aliases: ['container']
|
||||
default: None
|
||||
all_infrastructure_affected:
|
||||
description:
|
||||
- If it affects all components and containers
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
automation:
|
||||
description:
|
||||
- Automatically start and end the maintenance window
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
maintenance_notify_now:
|
||||
description:
|
||||
- Notify subscribers now
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
maintenance_notify_72_hr:
|
||||
description:
|
||||
- Notify subscribers 72 hours before maintenance start time
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
maintenance_notify_24_hr:
|
||||
description:
|
||||
- Notify subscribers 24 hours before maintenance start time
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
maintenance_notify_1_hr:
|
||||
description:
|
||||
- Notify subscribers 1 hour before maintenance start time
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
default: 'no'
|
||||
maintenance_id:
|
||||
description:
|
||||
- The maintenance id number when deleting a maintenance window
|
||||
required: false
|
||||
default: None
|
||||
minutes:
|
||||
description:
|
||||
- The length of time in UTC that the maintenance will run \
|
||||
(starting from playbook runtime)
|
||||
required: false
|
||||
default: 10
|
||||
start_date:
|
||||
description:
|
||||
- Date maintenance is expected to start (Month/Day/Year) (UTC)
|
||||
- End Date is worked out from start_date + minutes
|
||||
required: false
|
||||
default: None
|
||||
start_time:
|
||||
description:
|
||||
- Time maintenance is expected to start (Hour:Minutes) (UTC)
|
||||
- End Time is worked out from start_time + minutes
|
||||
required: false
|
||||
default: None
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
||||
@@ -27,23 +27,15 @@ options:
|
||||
description:
|
||||
- Define whether or not the monitor should be running or paused.
|
||||
required: true
|
||||
default: null
|
||||
choices: [ "started", "paused" ]
|
||||
aliases: []
|
||||
monitorid:
|
||||
description:
|
||||
- ID of the monitor to check.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
apikey:
|
||||
description:
|
||||
- Uptime Robot API key.
|
||||
required: true
|
||||
default: null
|
||||
choices: []
|
||||
aliases: []
|
||||
notes:
|
||||
- Support for adding and removing monitors and alert contacts has not yet been implemented.
|
||||
'''
|
||||
|
||||
@@ -46,11 +46,9 @@ options:
|
||||
host_groups:
|
||||
description:
|
||||
- List of host groups the host is part of.
|
||||
required: false
|
||||
link_templates:
|
||||
description:
|
||||
- List of templates linked to the host.
|
||||
default: None
|
||||
inventory_mode:
|
||||
description:
|
||||
- Configure the inventory mode.
|
||||
@@ -77,7 +75,6 @@ options:
|
||||
proxy:
|
||||
description:
|
||||
- The name of the Zabbix proxy to be used.
|
||||
default: None
|
||||
interfaces:
|
||||
description:
|
||||
- List of interfaces to be created for the host (see example below).
|
||||
@@ -158,8 +155,8 @@ options:
|
||||
force:
|
||||
description:
|
||||
- Overwrite the host configuration, even if already present.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
choices: [ 'yes', 'no' ]
|
||||
version_added: '2.0'
|
||||
extends_documentation_fragment:
|
||||
- zabbix
|
||||
|
||||
@@ -28,7 +28,6 @@ options:
|
||||
state:
|
||||
description:
|
||||
- Create or remove a maintenance window. Maintenance window to remove is identified by name.
|
||||
required: false
|
||||
default: present
|
||||
choices: [ "present", "absent" ]
|
||||
host_names:
|
||||
@@ -38,8 +37,6 @@ options:
|
||||
C(host_name) is an alias for C(host_names).
|
||||
B(Required) option when C(state) is I(present)
|
||||
and no C(host_groups) specified.
|
||||
required: false
|
||||
default: null
|
||||
aliases: [ "host_name" ]
|
||||
host_groups:
|
||||
description:
|
||||
@@ -48,13 +45,10 @@ options:
|
||||
C(host_group) is an alias for C(host_groups).
|
||||
B(Required) option when C(state) is I(present)
|
||||
and no C(host_names) specified.
|
||||
required: false
|
||||
default: null
|
||||
aliases: [ "host_group" ]
|
||||
minutes:
|
||||
description:
|
||||
- Length of maintenance window in minutes.
|
||||
required: false
|
||||
default: 10
|
||||
name:
|
||||
description:
|
||||
@@ -68,8 +62,8 @@ options:
|
||||
collect_data:
|
||||
description:
|
||||
- Type of maintenance. With data collection, or without.
|
||||
required: false
|
||||
default: "true"
|
||||
type: bool
|
||||
default: 'yes'
|
||||
|
||||
extends_documentation_fragment:
|
||||
- zabbix
|
||||
|
||||
Reference in New Issue
Block a user