From 9cd90eec46b9f48f4b3524ae0348bb17051b347e Mon Sep 17 00:00:00 2001 From: Webster Mudge Date: Tue, 5 Aug 2025 14:10:18 -0400 Subject: [PATCH] Deprecate data role Signed-off-by: Webster Mudge --- .ansible-lint-ignore | 5 +++++ meta/runtime.yml | 4 ++++ roles/data/meta/main.yml | 29 ----------------------------- roles/data/tasks/main.yml | 6 ++++++ 4 files changed, 15 insertions(+), 29 deletions(-) diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore index 0f8bcc66..a5990ed0 100644 --- a/.ansible-lint-ignore +++ b/.ansible-lint-ignore @@ -26,3 +26,8 @@ roles/auto_repo_mirror/tasks/update_mirror_cache.yml risky-file-permissions skip roles/auto_repo_mirror/vars/main.yml var-naming[no-role-prefix] skip roles/common/defaults/main.yml jinja[spacing][/] skip roles/common/defaults/main.yml yaml[line-length] skip +roles/data/tasks/initialize.yml yaml[line-length] skip +roles/data/tasks/main.yml name[missing][/] skip +roles/data/tasks/setup_aws.yml risky-file-permissions skip +roles/data/tasks/setup_aws.yml yaml[line-length] skip +roles/data/tasks/teardown_aws_policies.yml yaml[line-length] skip diff --git a/meta/runtime.yml b/meta/runtime.yml index 63bb4756..461c64be 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -41,3 +41,7 @@ plugin_routing: deprecation: removal_version: 4.0.0 warning_text: Role, common, is not longer supported. + data: + deprecation: + removal_version: 4.0.0 + warning_text: Role, data, is not longer supported. diff --git a/roles/data/meta/main.yml b/roles/data/meta/main.yml index dece8cc3..064cfd4e 100644 --- a/roles/data/meta/main.yml +++ b/roles/data/meta/main.yml @@ -13,33 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -galaxy_info: - author: Webster Mudge (wmudge@cloudera.com) - description: > - Management of cloud provider roles and policies supporting external data locations - for Cloudera Data Platform (CDP) Public Cloud deployments and Environment. - company: Cloudera - license: Apache-2.0 - - min_ansible_version: 2.10 - - platforms: - - name: Debian - versions: all - - name: Fedora - versions: all - - name: GenericLinux - versions: all - - name: MacOSX - versions: all - - name: Ubuntu - versions: all - - galaxy_tags: - - cloudera - - cdp - - aws - - gcloud - - azure - dependencies: ["cloudera.exe.common"] diff --git a/roles/data/tasks/main.yml b/roles/data/tasks/main.yml index b05cd65f..b8d837de 100644 --- a/roles/data/tasks/main.yml +++ b/roles/data/tasks/main.yml @@ -13,6 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: Deprecation warning + run_once: true + cloudera.exe.deprecation: + msg: "Role, {{ ansible_role_name }}, is no longer supported." + version: 4.0.0 + - ansible.builtin.include_tasks: validate.yml - ansible.builtin.include_tasks: initialize.yml - ansible.builtin.include_tasks: setup.yml