mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
Deprecate ssl_version. (#853)
This commit is contained in:
parent
f2a5d6f872
commit
36c118d154
4
changelogs/fragments/853-ssl_version.yml
Normal file
4
changelogs/fragments/853-ssl_version.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
deprecated_features:
|
||||||
|
- "various modules and plugins - the ``ssl_version`` option has been deprecated and will be removed from community.docker 4.0.0.
|
||||||
|
It has already been removed from Docker SDK for Python 7.0.0, and was only necessary in the past to work around SSL/TLS issues
|
||||||
|
(https://github.com/ansible-collections/community.docker/pull/853)."
|
||||||
@ -21,6 +21,7 @@ notes:
|
|||||||
with Python's C(SSLSocket)s. See U(https://github.com/ansible-collections/community.docker/issues/605) for more information.
|
with Python's C(SSLSocket)s. See U(https://github.com/ansible-collections/community.docker/issues/605) for more information.
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- community.docker.docker.api_documentation
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.docker.ssl_version_deprecation
|
||||||
- community.docker.docker.var_names
|
- community.docker.docker.var_names
|
||||||
options:
|
options:
|
||||||
remote_user:
|
remote_user:
|
||||||
|
|||||||
@ -392,3 +392,12 @@ notes:
|
|||||||
- This module does B(not) use the L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) to
|
- This module does B(not) use the L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) to
|
||||||
communicate with the Docker daemon. It directly calls the Docker CLI program.
|
communicate with the Docker daemon. It directly calls the Docker CLI program.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# DEPRECATED: this will be removed from community.docker 4.0.0! Use with care!
|
||||||
|
SSL_VERSION_DEPRECATION = '''
|
||||||
|
options:
|
||||||
|
ssl_version:
|
||||||
|
deprecated:
|
||||||
|
why: This was necessary a long time ago to handle problems with older TLS/SSL versions. It is no longer necessary nowadays.
|
||||||
|
version: 4.0.0
|
||||||
|
'''
|
||||||
|
|||||||
@ -21,6 +21,7 @@ author:
|
|||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- ansible.builtin.constructed
|
- ansible.builtin.constructed
|
||||||
- community.docker.docker.api_documentation
|
- community.docker.docker.api_documentation
|
||||||
|
- community.docker.docker.ssl_version_deprecation
|
||||||
- community.library_inventory_filtering_v1.inventory_filter
|
- community.library_inventory_filtering_v1.inventory_filter
|
||||||
description:
|
description:
|
||||||
- Reads inventories from the Docker API.
|
- Reads inventories from the Docker API.
|
||||||
|
|||||||
@ -78,6 +78,9 @@ DOCUMENTATION = '''
|
|||||||
- Provide a valid SSL version number. Default value determined
|
- Provide a valid SSL version number. Default value determined
|
||||||
by L(SSL Python module, https://docs.python.org/3/library/ssl.html).
|
by L(SSL Python module, https://docs.python.org/3/library/ssl.html).
|
||||||
type: str
|
type: str
|
||||||
|
deprecated:
|
||||||
|
why: This was necessary a long time ago to handle problems with SSL versions. It is no longer necessary nowadays.
|
||||||
|
version: 4.0.0
|
||||||
api_version:
|
api_version:
|
||||||
description:
|
description:
|
||||||
- The version of the Docker API running on the Docker Host.
|
- The version of the Docker API running on the Docker Host.
|
||||||
|
|||||||
@ -29,7 +29,12 @@ DOCKER_COMMON_ARGS = dict(
|
|||||||
ca_path=dict(type='path', aliases=['ca_cert', 'tls_ca_cert', 'cacert_path']),
|
ca_path=dict(type='path', aliases=['ca_cert', 'tls_ca_cert', 'cacert_path']),
|
||||||
client_cert=dict(type='path', aliases=['tls_client_cert', 'cert_path']),
|
client_cert=dict(type='path', aliases=['tls_client_cert', 'cert_path']),
|
||||||
client_key=dict(type='path', aliases=['tls_client_key', 'key_path']),
|
client_key=dict(type='path', aliases=['tls_client_key', 'key_path']),
|
||||||
ssl_version=dict(type='str', fallback=(env_fallback, ['DOCKER_SSL_VERSION'])),
|
ssl_version=dict(
|
||||||
|
type='str',
|
||||||
|
fallback=(env_fallback, ['DOCKER_SSL_VERSION']),
|
||||||
|
removed_in_version='4.0.0',
|
||||||
|
removed_from_collection='community.docker',
|
||||||
|
),
|
||||||
tls=dict(type='bool', default=DEFAULT_TLS, fallback=(env_fallback, ['DOCKER_TLS'])),
|
tls=dict(type='bool', default=DEFAULT_TLS, fallback=(env_fallback, ['DOCKER_TLS'])),
|
||||||
use_ssh_client=dict(type='bool', default=False),
|
use_ssh_client=dict(type='bool', default=False),
|
||||||
validate_certs=dict(type='bool', default=DEFAULT_TLS_VERIFY, fallback=(env_fallback, ['DOCKER_TLS_VERIFY']), aliases=['tls_verify']),
|
validate_certs=dict(type='bool', default=DEFAULT_TLS_VERIFY, fallback=(env_fallback, ['DOCKER_TLS_VERIFY']), aliases=['tls_verify']),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user