From 9e83a4cb347c9fc5ffbc81c31231dfa886d59cf2 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 27 Jan 2024 13:54:05 +0100 Subject: [PATCH] [PR #7901/84147081 backport][stable-8] Consul acl deprecation (#7906) Consul acl deprecation (#7901) Start deprecation of consul_acl. (cherry picked from commit 84147081d424d8e32b97ec6b8e2ea2c7454cc692) Co-authored-by: Florian Apolloner --- changelogs/fragments/7901-consul-acl-deprecation.yaml | 3 +++ meta/runtime.yml | 4 ++++ plugins/modules/consul_acl.py | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 changelogs/fragments/7901-consul-acl-deprecation.yaml diff --git a/changelogs/fragments/7901-consul-acl-deprecation.yaml b/changelogs/fragments/7901-consul-acl-deprecation.yaml new file mode 100644 index 0000000000..9480b04ce9 --- /dev/null +++ b/changelogs/fragments/7901-consul-acl-deprecation.yaml @@ -0,0 +1,3 @@ +deprecated_features: + - "consul_acl - the module has been deprecated and will be removed in community.general 10.0.0. ``consul_token`` and ``consul_policy`` + can be used instead (https://github.com/ansible-collections/community.general/pull/7901)." \ No newline at end of file diff --git a/meta/runtime.yml b/meta/runtime.yml index 5710e0abe0..4fe80ca257 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -30,6 +30,10 @@ plugin_routing: nios_next_network: redirect: infoblox.nios_modules.nios_next_network modules: + consul_acl: + deprecation: + removal_version: 10.0.0 + warning_text: Use community.general.consul_token and/or community.general.consul_policy instead. rax_cbs_attachments: deprecation: removal_version: 9.0.0 diff --git a/plugins/modules/consul_acl.py b/plugins/modules/consul_acl.py index 7be34a6463..4617090fd3 100644 --- a/plugins/modules/consul_acl.py +++ b/plugins/modules/consul_acl.py @@ -26,6 +26,10 @@ attributes: support: none diff_mode: support: none +deprecated: + removed_in: 10.0.0 + why: The legacy ACL system was removed from Consul. + alternative: Use M(community.general.consul_token) and/or M(community.general.consul_policy) instead. options: mgmt_token: description: