Skip to content

Commit

Permalink
SAT-22989 - Remove 'Run Insights maintenance plan'
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Apr 25, 2024
1 parent 69853c3 commit 23ca7c3
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 276 deletions.
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.

0 comments on commit 23ca7c3

Please sign in to comment.