1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[PR #8628/cac55beb backport][stable-9] Type options of callback plugins (#8663)

Type options of callback plugins (#8628)

Type options of callback plugins.

(cherry picked from commit cac55beb4f)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2024-07-21 22:16:23 +02:00 committed by GitHub
parent 2261bd62de
commit a89ca23ecc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- "cgroup_memory_recap, hipchat, jabber, log_plays, loganalytics, logentries, logstash, slack, splunk, sumologic, syslog_json callback plugins - make sure that all options are typed (https://github.com/ansible-collections/community.general/pull/8628)."

View file

@ -25,6 +25,7 @@ DOCUMENTATION = '''
max_mem_file: max_mem_file:
required: true required: true
description: Path to cgroups C(memory.max_usage_in_bytes) file. Example V(/sys/fs/cgroup/memory/ansible_profile/memory.max_usage_in_bytes). description: Path to cgroups C(memory.max_usage_in_bytes) file. Example V(/sys/fs/cgroup/memory/ansible_profile/memory.max_usage_in_bytes).
type: str
env: env:
- name: CGROUP_MAX_MEM_FILE - name: CGROUP_MAX_MEM_FILE
ini: ini:
@ -33,6 +34,7 @@ DOCUMENTATION = '''
cur_mem_file: cur_mem_file:
required: true required: true
description: Path to C(memory.usage_in_bytes) file. Example V(/sys/fs/cgroup/memory/ansible_profile/memory.usage_in_bytes). description: Path to C(memory.usage_in_bytes) file. Example V(/sys/fs/cgroup/memory/ansible_profile/memory.usage_in_bytes).
type: str
env: env:
- name: CGROUP_CUR_MEM_FILE - name: CGROUP_CUR_MEM_FILE
ini: ini:

View file

@ -25,6 +25,7 @@ DOCUMENTATION = '''
options: options:
token: token:
description: HipChat API token for v1 or v2 API. description: HipChat API token for v1 or v2 API.
type: str
required: true required: true
env: env:
- name: HIPCHAT_TOKEN - name: HIPCHAT_TOKEN
@ -33,6 +34,10 @@ DOCUMENTATION = '''
key: token key: token
api_version: api_version:
description: HipChat API version, v1 or v2. description: HipChat API version, v1 or v2.
type: str
choices:
- v1
- v2
required: false required: false
default: v1 default: v1
env: env:
@ -42,6 +47,7 @@ DOCUMENTATION = '''
key: api_version key: api_version
room: room:
description: HipChat room to post in. description: HipChat room to post in.
type: str
default: ansible default: ansible
env: env:
- name: HIPCHAT_ROOM - name: HIPCHAT_ROOM
@ -50,6 +56,7 @@ DOCUMENTATION = '''
key: room key: room
from: from:
description: Name to post as description: Name to post as
type: str
default: ansible default: ansible
env: env:
- name: HIPCHAT_FROM - name: HIPCHAT_FROM

View file

@ -20,21 +20,25 @@ DOCUMENTATION = '''
options: options:
server: server:
description: connection info to jabber server description: connection info to jabber server
type: str
required: true required: true
env: env:
- name: JABBER_SERV - name: JABBER_SERV
user: user:
description: Jabber user to authenticate as description: Jabber user to authenticate as
type: str
required: true required: true
env: env:
- name: JABBER_USER - name: JABBER_USER
password: password:
description: Password for the user to the jabber server description: Password for the user to the jabber server
type: str
required: true required: true
env: env:
- name: JABBER_PASS - name: JABBER_PASS
to: to:
description: chat identifier that will receive the message description: chat identifier that will receive the message
type: str
required: true required: true
env: env:
- name: JABBER_TO - name: JABBER_TO

View file

@ -21,6 +21,7 @@ DOCUMENTATION = '''
log_folder: log_folder:
default: /var/log/ansible/hosts default: /var/log/ansible/hosts
description: The folder where log files will be created. description: The folder where log files will be created.
type: str
env: env:
- name: ANSIBLE_LOG_FOLDER - name: ANSIBLE_LOG_FOLDER
ini: ini:

View file

@ -21,6 +21,7 @@ DOCUMENTATION = '''
options: options:
workspace_id: workspace_id:
description: Workspace ID of the Azure log analytics workspace. description: Workspace ID of the Azure log analytics workspace.
type: str
required: true required: true
env: env:
- name: WORKSPACE_ID - name: WORKSPACE_ID
@ -29,6 +30,7 @@ DOCUMENTATION = '''
key: workspace_id key: workspace_id
shared_key: shared_key:
description: Shared key to connect to Azure log analytics workspace. description: Shared key to connect to Azure log analytics workspace.
type: str
required: true required: true
env: env:
- name: WORKSPACE_SHARED_KEY - name: WORKSPACE_SHARED_KEY

View file

@ -22,6 +22,7 @@ DOCUMENTATION = '''
options: options:
api: api:
description: URI to the Logentries API. description: URI to the Logentries API.
type: str
env: env:
- name: LOGENTRIES_API - name: LOGENTRIES_API
default: data.logentries.com default: data.logentries.com
@ -30,6 +31,7 @@ DOCUMENTATION = '''
key: api key: api
port: port:
description: HTTP port to use when connecting to the API. description: HTTP port to use when connecting to the API.
type: int
env: env:
- name: LOGENTRIES_PORT - name: LOGENTRIES_PORT
default: 80 default: 80
@ -38,6 +40,7 @@ DOCUMENTATION = '''
key: port key: port
tls_port: tls_port:
description: Port to use when connecting to the API when TLS is enabled. description: Port to use when connecting to the API when TLS is enabled.
type: int
env: env:
- name: LOGENTRIES_TLS_PORT - name: LOGENTRIES_TLS_PORT
default: 443 default: 443
@ -46,6 +49,7 @@ DOCUMENTATION = '''
key: tls_port key: tls_port
token: token:
description: The logentries C(TCP token). description: The logentries C(TCP token).
type: str
env: env:
- name: LOGENTRIES_ANSIBLE_TOKEN - name: LOGENTRIES_ANSIBLE_TOKEN
required: true required: true

View file

@ -20,6 +20,7 @@ DOCUMENTATION = r'''
options: options:
server: server:
description: Address of the Logstash server. description: Address of the Logstash server.
type: str
env: env:
- name: LOGSTASH_SERVER - name: LOGSTASH_SERVER
ini: ini:
@ -29,6 +30,7 @@ DOCUMENTATION = r'''
default: localhost default: localhost
port: port:
description: Port on which logstash is listening. description: Port on which logstash is listening.
type: int
env: env:
- name: LOGSTASH_PORT - name: LOGSTASH_PORT
ini: ini:
@ -38,6 +40,7 @@ DOCUMENTATION = r'''
default: 5000 default: 5000
type: type:
description: Message type. description: Message type.
type: str
env: env:
- name: LOGSTASH_TYPE - name: LOGSTASH_TYPE
ini: ini:
@ -47,6 +50,7 @@ DOCUMENTATION = r'''
default: ansible default: ansible
pre_command: pre_command:
description: Executes command before run and its result is added to the C(ansible_pre_command_output) logstash field. description: Executes command before run and its result is added to the C(ansible_pre_command_output) logstash field.
type: str
version_added: 2.0.0 version_added: 2.0.0
ini: ini:
- section: callback_logstash - section: callback_logstash

View file

@ -22,6 +22,7 @@ DOCUMENTATION = '''
webhook_url: webhook_url:
required: true required: true
description: Slack Webhook URL. description: Slack Webhook URL.
type: str
env: env:
- name: SLACK_WEBHOOK_URL - name: SLACK_WEBHOOK_URL
ini: ini:
@ -30,6 +31,7 @@ DOCUMENTATION = '''
channel: channel:
default: "#ansible" default: "#ansible"
description: Slack room to post in. description: Slack room to post in.
type: str
env: env:
- name: SLACK_CHANNEL - name: SLACK_CHANNEL
ini: ini:
@ -37,6 +39,7 @@ DOCUMENTATION = '''
key: channel key: channel
username: username:
description: Username to post as. description: Username to post as.
type: str
env: env:
- name: SLACK_USERNAME - name: SLACK_USERNAME
default: ansible default: ansible

View file

@ -22,6 +22,7 @@ DOCUMENTATION = '''
options: options:
url: url:
description: URL to the Splunk HTTP collector source. description: URL to the Splunk HTTP collector source.
type: str
env: env:
- name: SPLUNK_URL - name: SPLUNK_URL
ini: ini:
@ -29,6 +30,7 @@ DOCUMENTATION = '''
key: url key: url
authtoken: authtoken:
description: Token to authenticate the connection to the Splunk HTTP collector. description: Token to authenticate the connection to the Splunk HTTP collector.
type: str
env: env:
- name: SPLUNK_AUTHTOKEN - name: SPLUNK_AUTHTOKEN
ini: ini:

View file

@ -20,6 +20,7 @@ requirements:
options: options:
url: url:
description: URL to the Sumologic HTTP collector source. description: URL to the Sumologic HTTP collector source.
type: str
env: env:
- name: SUMOLOGIC_URL - name: SUMOLOGIC_URL
ini: ini:

View file

@ -19,6 +19,7 @@ DOCUMENTATION = '''
options: options:
server: server:
description: Syslog server that will receive the event. description: Syslog server that will receive the event.
type: str
env: env:
- name: SYSLOG_SERVER - name: SYSLOG_SERVER
default: localhost default: localhost
@ -27,6 +28,7 @@ DOCUMENTATION = '''
key: syslog_server key: syslog_server
port: port:
description: Port on which the syslog server is listening. description: Port on which the syslog server is listening.
type: int
env: env:
- name: SYSLOG_PORT - name: SYSLOG_PORT
default: 514 default: 514
@ -35,6 +37,7 @@ DOCUMENTATION = '''
key: syslog_port key: syslog_port
facility: facility:
description: Syslog facility to log as. description: Syslog facility to log as.
type: str
env: env:
- name: SYSLOG_FACILITY - name: SYSLOG_FACILITY
default: user default: user