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

Improve plugin sanity (#966)

* callback_type -> type.

* Mark authors as unknown.

* Add author field forgotten in #627.

* Fix author entries.

* Add author field forgotten in #127.

* Fix some types.
This commit is contained in:
Felix Fontein 2020-09-28 21:21:51 +02:00 committed by GitHub
parent 71bbabb96f
commit e5da25915d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 63 additions and 31 deletions

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
cache: memcached cache: memcached
short_description: Use memcached DB for cache short_description: Use memcached DB for cache
description: description:

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
cache: redis cache: redis
short_description: Use Redis DB for cache short_description: Use Redis DB for cache
description: description:

View file

@ -7,6 +7,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: actionable callback: actionable
type: stdout type: stdout
short_description: shows only items that need attention short_description: shows only items that need attention

View file

@ -7,8 +7,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: cgroup_memory_recap callback: cgroup_memory_recap
callback_type: aggregate type: aggregate
requirements: requirements:
- whitelist in configuration - whitelist in configuration
- cgroups - cgroups

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: context_demo callback: context_demo
type: aggregate type: aggregate
short_description: demo callback that adds play/task context short_description: demo callback that adds play/task context

View file

@ -8,6 +8,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: counter_enabled callback: counter_enabled
type: stdout type: stdout
short_description: adds counters to the output items (tasks and hosts/task) short_description: adds counters to the output items (tasks and hosts/task)

View file

@ -8,7 +8,7 @@ __metaclass__ = type
DOCUMENTATION = r''' DOCUMENTATION = r'''
callback: diy callback: diy
callback_type: stdout type: stdout
short_description: Customize the output short_description: Customize the output
version_added: 0.2.0 version_added: 0.2.0
description: description:

View file

@ -7,6 +7,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: full_skip callback: full_skip
type: stdout type: stdout
short_description: suppresses tasks if all hosts skipped short_description: suppresses tasks if all hosts skipped

View file

@ -6,8 +6,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: hipchat callback: hipchat
callback_type: notification type: notification
requirements: requirements:
- whitelist in configuration. - whitelist in configuration.
- prettytable (python lib) - prettytable (python lib)

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: jabber callback: jabber
type: notification type: notification
short_description: post task events to a jabber server short_description: post task events to a jabber server

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: log_plays callback: log_plays
type: notification type: notification
short_description: write playbook output to log file short_description: write playbook output to log file

View file

@ -5,8 +5,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: logdna callback: logdna
callback_type: aggregate type: aggregate
short_description: Sends playbook logs to LogDNA short_description: Sends playbook logs to LogDNA
description: description:
- This callback will report logs from playbook actions, tasks, and events to LogDNA (https://app.logdna.com) - This callback will report logs from playbook actions, tasks, and events to LogDNA (https://app.logdna.com)

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: logentries callback: logentries
type: notification type: notification
short_description: Sends events to Logentries short_description: Sends events to Logentries

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: logstash callback: logstash
type: notification type: notification
short_description: Sends events to Logstash short_description: Sends events to Logstash

View file

@ -6,8 +6,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: 'null' callback: 'null'
callback_type: stdout type: stdout
requirements: requirements:
- set as main display callback - set as main display callback
short_description: Don't display stuff to screen short_description: Don't display stuff to screen

View file

@ -7,6 +7,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: say callback: say
type: notification type: notification
requirements: requirements:

View file

@ -6,8 +6,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: selective callback: selective
callback_type: stdout type: stdout
requirements: requirements:
- set as main display callback - set as main display callback
short_description: only print certain tasks short_description: only print certain tasks

View file

@ -7,8 +7,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: slack callback: slack
callback_type: notification type: notification
requirements: requirements:
- whitelist in configuration - whitelist in configuration
- prettytable (python library) - prettytable (python library)

View file

@ -21,7 +21,7 @@ DOCUMENTATION = '''
callback: splunk callback: splunk
type: aggregate type: aggregate
short_description: Sends task result events to Splunk HTTP Event Collector short_description: Sends task result events to Splunk HTTP Event Collector
author: "Stuart Hirst <support@convergingdata.com>" author: "Stuart Hirst (!UNKNOWN) <support@convergingdata.com>"
description: description:
- This callback plugin will send task results as JSON formatted events to a Splunk HTTP collector. - This callback plugin will send task results as JSON formatted events to a Splunk HTTP collector.
- The companion Splunk Monitoring & Diagnostics App is available here "https://splunkbase.splunk.com/app/4023/" - The companion Splunk Monitoring & Diagnostics App is available here "https://splunkbase.splunk.com/app/4023/"

View file

@ -7,8 +7,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: stderr callback: stderr
callback_type: stdout type: stdout
requirements: requirements:
- set as main display callback - set as main display callback
short_description: Splits output, sending failed tasks to stderr short_description: Splits output, sending failed tasks to stderr

View file

@ -6,8 +6,9 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: syslog_json callback: syslog_json
callback_type: notification type: notification
requirements: requirements:
- whitelist in configuration - whitelist in configuration
short_description: sends JSON events to syslog short_description: sends JSON events to syslog

View file

@ -9,7 +9,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
callback: unixy callback: unixy
type: stdout type: stdout
author: Allyson Bowles <@akatch> author: Allyson Bowles (@akatch)
short_description: condensed Ansible output short_description: condensed Ansible output
description: description:
- Consolidated Ansible output in the style of LINUX/UNIX startup logs. - Consolidated Ansible output in the style of LINUX/UNIX startup logs.

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
callback: yaml callback: yaml
type: stdout type: stdout
short_description: yaml-ized Ansible screen output short_description: yaml-ized Ansible screen output

View file

@ -9,7 +9,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Maykel Moya <mmoya@speedyrails.com> author: Maykel Moya (!UNKNOWN) <mmoya@speedyrails.com>
connection: chroot connection: chroot
short_description: Interact with local chroot short_description: Interact with local chroot
description: description:

View file

@ -11,8 +11,8 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: author:
- Lorin Hochestein - Lorin Hochestein (!UNKNOWN)
- Leendert Brouwer - Leendert Brouwer (!UNKNOWN)
connection: docker connection: docker
short_description: Run tasks in docker containers short_description: Run tasks in docker containers
description: description:

View file

@ -9,7 +9,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Stephan Lohse <dev-github@ploek.org> author: Stephan Lohse (!UNKNOWN) <dev-github@ploek.org>
connection: iocage connection: iocage
short_description: Run tasks in iocage jails short_description: Run tasks in iocage jails
description: description:

View file

@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Joerg Thalheim <joerg@higgsboson.tk> author: Joerg Thalheim (!UNKNOWN) <joerg@higgsboson.tk>
connection: lxc connection: lxc
short_description: Run tasks in lxc containers via lxc python library short_description: Run tasks in lxc containers via lxc python library
description: description:

View file

@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Matt Clay <matt@mystile.com> author: Matt Clay (@mattclay) <matt@mystile.com>
connection: lxd connection: lxd
short_description: Run tasks in lxc containers via lxc CLI short_description: Run tasks in lxc containers via lxc CLI
description: description:

View file

@ -22,7 +22,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: author:
- xuxinkun - xuxinkun (!UNKNOWN)
connection: oc connection: oc

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Orion Poplawski (@opoplawski)
name: cobbler name: cobbler
plugin_type: inventory plugin_type: inventory
short_description: Cobbler inventory source short_description: Cobbler inventory source

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
name: nmap name: nmap
plugin_type: inventory plugin_type: inventory
short_description: Uses nmap to find hosts to target short_description: Uses nmap to find hosts to target

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
name: virtualbox name: virtualbox
plugin_type: inventory plugin_type: inventory
short_description: virtualbox inventory source short_description: virtualbox inventory source

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
lookup: cartesian lookup: cartesian
short_description: returns the cartesian product of lists short_description: returns the cartesian product of lists
description: description:
@ -36,7 +37,8 @@ RETURN = """
_list: _list:
description: description:
- list of lists composed of elements of the input lists - list of lists composed of elements of the input lists
type: lists type: list
elements: list
""" """
from itertools import product from itertools import product

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
lookup: chef_databag lookup: chef_databag
short_description: fetches data from a Chef Databag short_description: fetches data from a Chef Databag
description: description:

View file

@ -6,6 +6,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
lookup: consul_kv lookup: consul_kv
short_description: Fetch metadata from a Consul key value store. short_description: Fetch metadata from a Consul key value store.
description: description:

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
lookup: credstash lookup: credstash
short_description: retrieve secrets from Credstash on AWS short_description: retrieve secrets from Credstash on AWS
requirements: requirements:

View file

@ -5,6 +5,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: Unknown (!UNKNOWN)
lookup: cyberarkpassword lookup: cyberarkpassword
short_description: get secrets from CyberArk AIM short_description: get secrets from CyberArk AIM
requirements: requirements:

View file

@ -71,7 +71,7 @@ RETURN = '''
description: description:
- list of values associated with input keys - list of values associated with input keys
type: list type: list
elements: strings elements: string
''' '''
import json import json

View file

@ -8,7 +8,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: author:
- Eric Belhomme <ebelhomme@fr.scc.com> - Eric Belhomme (@eric-belhomme) <ebelhomme@fr.scc.com>
version_added: '0.2.0' version_added: '0.2.0'
lookup: etcd3 lookup: etcd3
short_description: Get key values from etcd3 server short_description: Get key values from etcd3 server

View file

@ -6,7 +6,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
lookup: flattened lookup: flattened
author: Serge van Ginderachter <serge@vanginderachter.be> author: Serge van Ginderachter (!UNKNOWN) <serge@vanginderachter.be>
short_description: return single list completely flattened short_description: return single list completely flattened
description: description:
- given one or more lists, this lookup will flatten any list elements found recursively until only 1 list is left. - given one or more lists, this lookup will flatten any list elements found recursively until only 1 list is left.

View file

@ -9,7 +9,7 @@ lookup: gcp_storage_file
description: description:
- This lookup returns the contents from a file residing on Google Cloud Storage - This lookup returns the contents from a file residing on Google Cloud Storage
short_description: Return GC Storage content short_description: Return GC Storage content
author: Eric Anderson <eanderson@avinetworks.com> author: Eric Anderson (!UNKNOWN) <eanderson@avinetworks.com>
requirements: requirements:
- python >= 2.6 - python >= 2.6
- requests >= 2.18.4 - requests >= 2.18.4

View file

@ -9,7 +9,7 @@ __metaclass__ = type
DOCUMENTATION = """ DOCUMENTATION = """
lookup: hashi_vault lookup: hashi_vault
author: author:
- Jonathan Davila <jdavila(at)ansible.com> - Jonathan Davila (!UNKNOWN) <jdavila(at)ansible.com>
- Brian Scholer (@briantist) - Brian Scholer (@briantist)
short_description: Retrieve secrets from HashiCorp's vault short_description: Retrieve secrets from HashiCorp's vault
requirements: requirements:

View file

@ -8,7 +8,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
lookup: keyring lookup: keyring
author: author:
- Samuel Boucher <boucher.samuel.c@gmail.com> - Samuel Boucher (!UNKNOWN) <boucher.samuel.c@gmail.com>
requirements: requirements:
- keyring (python library) - keyring (python library)
short_description: grab secrets from the OS keyring short_description: grab secrets from the OS keyring

View file

@ -7,7 +7,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
lookup: lastpass lookup: lastpass
author: author:
- Andrew Zenk <azenk@umn.edu> - Andrew Zenk (!UNKNOWN) <azenk@umn.edu>
requirements: requirements:
- lpass (command line utility) - lpass (command line utility)
- must have already logged into lastpass - must have already logged into lastpass

View file

@ -6,7 +6,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
author: author:
- Kyrylo Galanov (galanoff@gmail.com) - Kyrylo Galanov (!UNKNOWN) <galanoff@gmail.com>
lookup: manifold lookup: manifold
short_description: get credentials from Manifold.co short_description: get credentials from Manifold.co
description: description:

View file

@ -22,6 +22,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
author: Unknown (!UNKNOWN)
lookup: nios lookup: nios
short_description: Query Infoblox NIOS objects short_description: Query Infoblox NIOS objects
description: description:
@ -83,7 +84,7 @@ RETURN = """
obj_type: obj_type:
description: description:
- The object type specified in the terms argument - The object type specified in the terms argument
type: complex type: dictionary
contains: contains:
obj_field: obj_field:
description: description:

View file

@ -22,6 +22,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
author: Unknown (!UNKNOWN)
lookup: nios_next_ip lookup: nios_next_ip
short_description: Return the next available IP address for a network short_description: Return the next available IP address for a network
description: description:

View file

@ -22,6 +22,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
author: Unknown (!UNKNOWN)
lookup: nios_next_network lookup: nios_next_network
short_description: Return the next available network range for a network-container short_description: Return the next available network range for a network-container
description: description:

View file

@ -8,7 +8,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
lookup: passwordstore lookup: passwordstore
author: author:
- Patrick Deelman <patrick@patrickdeelman.nl> - Patrick Deelman (!UNKNOWN) <patrick@patrickdeelman.nl>
short_description: manage passwords with passwordstore.org's pass utility short_description: manage passwords with passwordstore.org's pass utility
description: description:
- Enables Ansible to retrieve, create or update passwords from the passwordstore.org pass utility. - Enables Ansible to retrieve, create or update passwords from the passwordstore.org pass utility.

View file

@ -8,7 +8,7 @@ DOCUMENTATION = '''
lookup: redis lookup: redis
author: author:
- Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com> - Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>
- Ansible Core - Ansible Core Team
short_description: fetch data from Redis short_description: fetch data from Redis
description: description:
- This lookup returns a list of results from a Redis DB corresponding to a list of items given to it - This lookup returns a list of results from a Redis DB corresponding to a list of items given to it

View file

@ -6,7 +6,7 @@ __metaclass__ = type
DOCUMENTATION = ''' DOCUMENTATION = '''
lookup: shelvefile lookup: shelvefile
author: Alejandro Guirao <lekumberri@gmail.com> author: Alejandro Guirao (!UNKNOWN) <lekumberri@gmail.com>
short_description: read keys from Python shelve file short_description: read keys from Python shelve file
description: description:
- Read keys from Python shelve file. - Read keys from Python shelve file.