From 0bbf772972648552192031463c3b181dac067e66 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Wed, 17 Apr 2024 08:27:12 +0200 Subject: [PATCH] SAT-22989 - Remove 'Run Insights maintenance plan' --- .../job_templates/maintenance_plan.erb | 19 ------------------- lib/foreman_ansible/remote_execution.rb | 8 -------- 2 files changed, 27 deletions(-) delete mode 100644 app/views/foreman_ansible/job_templates/maintenance_plan.erb diff --git a/app/views/foreman_ansible/job_templates/maintenance_plan.erb b/app/views/foreman_ansible/job_templates/maintenance_plan.erb deleted file mode 100644 index 494514ded..000000000 --- a/app/views/foreman_ansible/job_templates/maintenance_plan.erb +++ /dev/null @@ -1,19 +0,0 @@ -<%# -kind: job_template -name: Ansible - Run insights maintenance plan -job_category: Ansible Playbook -description_format: 'Insights maintenance plan for host' -feature: ansible_run_insights_plan -template_inputs: -- name: plan_id - description: The playbook for the rule coming from insights. - input_type: user - required: true -- name: organization_id - description: The Foreman organization associated with the Insights account - input_type: user - required: true -provider_type: Ansible -%> - -<%= insights_remediation(input(:plan_id), input(:organization_id)) %> diff --git a/lib/foreman_ansible/remote_execution.rb b/lib/foreman_ansible/remote_execution.rb index cb302e89c..1474731dc 100644 --- a/lib/foreman_ansible/remote_execution.rb +++ b/lib/foreman_ansible/remote_execution.rb @@ -22,14 +22,6 @@ def self.register_rex_feature ' the roles defined for a host'), :host_action_button => true ) - RemoteExecutionFeature.register( - :ansible_run_insights_plan, - N_('Ansible: Run Insights maintenance plan'), - :description => N_('Runs a given maintenance plan from Red Hat '\ - 'Access Insights given an ID.'), - :provided_inputs => %w[organization_id plan_id], - :notification_builder => ForemanAnsible::InsightsNotificationBuilder - ) RemoteExecutionFeature.register( :ansible_run_playbook, N_('Run playbook'),