From f4db226fa2fc4c184d85c49d7a19fecaef858261 Mon Sep 17 00:00:00 2001 From: Webster Mudge Date: Tue, 5 Aug 2025 15:21:08 -0400 Subject: [PATCH] Deprecate provision role Signed-off-by: Webster Mudge --- .ansible-lint-ignore | 2 ++ meta/runtime.yml | 4 ++++ roles/provision/meta/main.yml | 42 ---------------------------------- roles/provision/tasks/main.yml | 7 ++++++ 4 files changed, 13 insertions(+), 42 deletions(-) delete mode 100755 roles/provision/meta/main.yml diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore index 13a1d174..c08b628d 100644 --- a/.ansible-lint-ignore +++ b/.ansible-lint-ignore @@ -131,3 +131,5 @@ roles/platform/tasks/teardown_gcp_authz.yml jinja[spacing][/] skip roles/platform/tasks/validate.yml no-changed-when skip roles/platform/tasks/validate_aws_terraform.yml yaml[line-length] skip roles/platform/vars/main.yml var-naming[no-role-prefix] skip +roles/provision/defaults/main.yml yaml[comments][/] skip +roles/provision/tasks/present.yml risky-file-permissions skip diff --git a/meta/runtime.yml b/meta/runtime.yml index ab1fa2da..71741a3f 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -69,3 +69,7 @@ plugin_routing: deprecation: removal_version: 4.0.0 warning_text: Role, platform, is not longer supported. + provision: + deprecation: + removal_version: 4.0.0 + warning_text: Role, provision, is not longer supported. diff --git a/roles/provision/meta/main.yml b/roles/provision/meta/main.yml deleted file mode 100755 index dab1ef88..00000000 --- a/roles/provision/meta/main.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -# Copyright 2023 Cloudera, Inc. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -galaxy_info: - author: Webster Mudge (wmudge@cloudera.com) - description: > - Provision Cloudera-specific inventory. - 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: - - storage - - mount - - cdp - - aws - - openstack diff --git a/roles/provision/tasks/main.yml b/roles/provision/tasks/main.yml index f387f440..c1379fe5 100644 --- a/roles/provision/tasks/main.yml +++ b/roles/provision/tasks/main.yml @@ -1,3 +1,10 @@ --- + +- name: Deprecation warning + run_once: true + cloudera.exe.deprecation: + msg: "Role, {{ ansible_role_name }}, is no longer supported." + version: 4.0.0 + - name: Execute provisioning state ansible.builtin.include_tasks: "{{ provision_state }}.yml"