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:
parent
50021d6bfb
commit
471f523f53
3 changed files with 11 additions and 0 deletions
|
@ -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).
|
|
@ -70,6 +70,11 @@ options:
|
|||
description:
|
||||
- Specify an HTTP proxy hostname.
|
||||
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:
|
||||
description:
|
||||
- Specify an HTTP proxy port.
|
||||
|
@ -806,6 +811,7 @@ def main():
|
|||
'consumer_id': {},
|
||||
'force_register': {'default': False, 'type': 'bool'},
|
||||
'server_proxy_hostname': {},
|
||||
'server_proxy_scheme': {},
|
||||
'server_proxy_port': {},
|
||||
'server_proxy_user': {},
|
||||
'server_proxy_password': {'no_log': True},
|
||||
|
|
|
@ -308,6 +308,7 @@ TEST_CASES = [
|
|||
'org_id': 'admin',
|
||||
'force_register': 'true',
|
||||
'server_proxy_hostname': 'proxy.company.com',
|
||||
'server_proxy_scheme': 'https',
|
||||
'server_proxy_port': '12345',
|
||||
'server_proxy_user': 'proxy_user',
|
||||
'server_proxy_password': 'secret_proxy_password'
|
||||
|
@ -327,6 +328,7 @@ TEST_CASES = [
|
|||
'--server.proxy_hostname=proxy.company.com',
|
||||
'--server.proxy_password=secret_proxy_password',
|
||||
'--server.proxy_port=12345',
|
||||
'--server.proxy_scheme=https',
|
||||
'--server.proxy_user=proxy_user'
|
||||
],
|
||||
{'check_rc': True},
|
||||
|
|
Loading…
Reference in a new issue