mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Rabbitmq: Enable communication to management API over HTTPS (#18437)
* Enable communication to management API over HTTPS. * Specify version added tags to new parameters * Set proper parameter type. * Corrected version_added numbers. * Extracted commons to ansible utils. * Fix PEP8 error * Fix documentation extension syntax. Fixes #22953
This commit is contained in:
parent
5e67981dd2
commit
e7ddff1928
5 changed files with 142 additions and 110 deletions
57
lib/ansible/utils/module_docs_fragments/rabbitmq.py
Normal file
57
lib/ansible/utils/module_docs_fragments/rabbitmq.py
Normal file
|
@ -0,0 +1,57 @@
|
|||
# Copyright: (c) 2016, Jorge Rodriguez <jorge.rodriguez@tiriel.eu>
|
||||
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
# Parameters for RabbitMQ modules
|
||||
DOCUMENTATION = '''
|
||||
options:
|
||||
login_user:
|
||||
description:
|
||||
- rabbitMQ user for connection.
|
||||
required: false
|
||||
default: guest
|
||||
login_password:
|
||||
description:
|
||||
- rabbitMQ password for connection.
|
||||
required: false
|
||||
default: false
|
||||
login_host:
|
||||
description:
|
||||
- rabbitMQ host for connection.
|
||||
required: false
|
||||
default: localhost
|
||||
login_port:
|
||||
description:
|
||||
- rabbitMQ management API port.
|
||||
required: false
|
||||
default: 15672
|
||||
login_protocol:
|
||||
description:
|
||||
- rabbitMQ management API protocol.
|
||||
choices: [ http , https ]
|
||||
required: false
|
||||
default: http
|
||||
version_added: "2.3"
|
||||
cacert:
|
||||
description:
|
||||
- CA certificate to verify SSL connection to management API.
|
||||
required: false
|
||||
version_added: "2.3"
|
||||
cert:
|
||||
description:
|
||||
- Client certificate to send on SSL connections to management API.
|
||||
required: false
|
||||
version_added: "2.3"
|
||||
key:
|
||||
description:
|
||||
- Private key matching the client certificate.
|
||||
required: false
|
||||
version_added: "2.3"
|
||||
vhost:
|
||||
description:
|
||||
- rabbitMQ virtual host.
|
||||
required: false
|
||||
default: "/"
|
||||
'''
|
Loading…
Add table
Add a link
Reference in a new issue