Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAT-22989 - Remove 'Run Insights maintenance plan' #712

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions app/services/foreman_ansible/insights_notification_builder.rb

This file was deleted.

86 changes: 0 additions & 86 deletions app/services/foreman_ansible/insights_plan_runner.rb

This file was deleted.

46 changes: 0 additions & 46 deletions app/services/foreman_ansible/renderer_methods.rb

This file was deleted.

19 changes: 0 additions & 19 deletions app/views/foreman_ansible/job_templates/maintenance_plan.erb

This file was deleted.

13 changes: 0 additions & 13 deletions db/seeds.d/90_notification_blueprints.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
# frozen_string_literal: true

blueprints = [
{
:group => N_('Jobs'),
:name => 'insights_remediation_successful',
:message => N_('Insights remediation on %{hosts_count}' \
' host(s) has finished successfully'),
:level => 'success',
:actions => {
:links => [
:path_method => :job_invocation_path,
:title => N_('Job Details')
]
}
},
{
:group => N_('Roles'),
:name => 'Sync_roles_and_variables_successfully',
Expand Down
2 changes: 0 additions & 2 deletions lib/foreman_ansible/register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@
'Permissions required for the user which is used by Ansible Tower Dynamic Inventory Item'

add_all_permissions_to_default_roles
extend_template_helpers ForemanAnsible::RendererMethods
allowed_template_helpers :insights_remediation

base_role_assignment_params = { :ansible_role_ids => [],
:ansible_roles => [] }
Expand Down
8 changes: 0 additions & 8 deletions lib/foreman_ansible/remote_execution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
38 changes: 0 additions & 38 deletions test/unit/services/insights_plan_runner_test.rb

This file was deleted.

Loading