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

redhat_subscription: add server_proxy_scheme parameter (#5662)

Add the `server_proxy_scheme` parameter to configure the scheme used for
the proxy server. This completes the configuration parameters for the
proxy server.
This commit is contained in:
Pino Toscano 2022-12-08 22:40:37 +01:00 committed by GitHub
parent 50021d6bfb
commit 471f523f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,3 @@
minor_changes:
- redhat_subscription - add a ``server_proxy_scheme`` parameter to configure the scheme for the proxy server
(https://github.com/ansible-collections/community.general/pull/5662).

View file

@ -70,6 +70,11 @@ options:
description: description:
- Specify an HTTP proxy hostname. - Specify an HTTP proxy hostname.
type: str type: str
server_proxy_scheme:
description:
- Specify an HTTP proxy scheme, for example C(http) or C(https).
type: str
version_added: 6.2.0
server_proxy_port: server_proxy_port:
description: description:
- Specify an HTTP proxy port. - Specify an HTTP proxy port.
@ -806,6 +811,7 @@ def main():
'consumer_id': {}, 'consumer_id': {},
'force_register': {'default': False, 'type': 'bool'}, 'force_register': {'default': False, 'type': 'bool'},
'server_proxy_hostname': {}, 'server_proxy_hostname': {},
'server_proxy_scheme': {},
'server_proxy_port': {}, 'server_proxy_port': {},
'server_proxy_user': {}, 'server_proxy_user': {},
'server_proxy_password': {'no_log': True}, 'server_proxy_password': {'no_log': True},

View file

@ -308,6 +308,7 @@ TEST_CASES = [
'org_id': 'admin', 'org_id': 'admin',
'force_register': 'true', 'force_register': 'true',
'server_proxy_hostname': 'proxy.company.com', 'server_proxy_hostname': 'proxy.company.com',
'server_proxy_scheme': 'https',
'server_proxy_port': '12345', 'server_proxy_port': '12345',
'server_proxy_user': 'proxy_user', 'server_proxy_user': 'proxy_user',
'server_proxy_password': 'secret_proxy_password' 'server_proxy_password': 'secret_proxy_password'
@ -327,6 +328,7 @@ TEST_CASES = [
'--server.proxy_hostname=proxy.company.com', '--server.proxy_hostname=proxy.company.com',
'--server.proxy_password=secret_proxy_password', '--server.proxy_password=secret_proxy_password',
'--server.proxy_port=12345', '--server.proxy_port=12345',
'--server.proxy_scheme=https',
'--server.proxy_user=proxy_user' '--server.proxy_user=proxy_user'
], ],
{'check_rc': True}, {'check_rc': True},