From 4fe355396095e42e5f065cc4f92dec5f662a2b28 Mon Sep 17 00:00:00 2001 From: Webster Mudge Date: Tue, 5 Aug 2025 15:05:05 -0400 Subject: [PATCH] Deprecate init_deployment role Signed-off-by: Webster Mudge --- .ansible-lint-ignore | 8 ++++++++ meta/runtime.yml | 4 ++++ roles/init_deployment/tasks/main.yml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore index b8d08596..9fd94045 100644 --- a/.ansible-lint-ignore +++ b/.ansible-lint-ignore @@ -84,3 +84,11 @@ roles/infrastructure/tasks/validate_azure.yml yaml[line-length] skip roles/infrastructure/tests/test.yml syntax-check[specific][/] skip roles/infrastructure/vars/main.yml var-naming[no-role-prefix] skip roles/infrastructure/vars/main.yml jinja[spacing][/] skip +roles/init_deployment/defaults/main.yml var-naming[no-role-prefix] skip +roles/init_deployment/tasks/marshall.yml name[template][/] skip +roles/init_deployment/tasks/marshall.yml jinja[invalid][/] skip +roles/init_deployment/tasks/runlevels.yml yaml[line-length] skip +roles/init_deployment/tasks/validate.yml no-jinja-when skip +roles/init_deployment/vars/basic_cluster.yml schema[vars][/] skip +roles/init_deployment/vars/basic_cluster.yml var-naming[no-role-prefix] skip +roles/init_deployment/vars/basic_cluster.yml var-naming[no-reserved] skip diff --git a/meta/runtime.yml b/meta/runtime.yml index 7fdd8af3..278d26c8 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -61,3 +61,7 @@ plugin_routing: deprecation: removal_version: 4.0.0 warning_text: Role, infrastructure, is not longer supported. + init_deployment: + deprecation: + removal_version: 4.0.0 + warning_text: Role, init_deployment, is not longer supported. diff --git a/roles/init_deployment/tasks/main.yml b/roles/init_deployment/tasks/main.yml index e7b187d9..96b69eaa 100644 --- a/roles/init_deployment/tasks/main.yml +++ b/roles/init_deployment/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 + - name: Marshall Deployment Definition ansible.builtin.include_tasks: marshall.yml