diff --git a/app/models/middleware_server.rb b/app/models/middleware_server.rb index 45a07f2fee1..a731e8f612f 100644 --- a/app/models/middleware_server.rb +++ b/app/models/middleware_server.rb @@ -1,4 +1,6 @@ class MiddlewareServer < ApplicationRecord + include MiqPolicyMixin + include ComplianceMixin include NewWithTypeStiMixin include LiveMetricsMixin diff --git a/db/fixtures/miq_event_definitions.csv b/db/fixtures/miq_event_definitions.csv index 3a8a3fa0866..0e8e6fc8bda 100644 --- a/db/fixtures/miq_event_definitions.csv +++ b/db/fixtures/miq_event_definitions.csv @@ -86,6 +86,9 @@ middleware_jdbc_ok,EAP JDBC Driver Deploy Succeeded,Default,middleware_operation middleware_jdbc_error,EAP JDBC Driver Deploy Failed,Default,middleware_operations middleware_jdbc_remove_ok,EAP JDBC Driver Undeploy Succeeded,Default,middleware_operations middleware_jdbc_remove_error,EAP JDBC Driver Undeploy Failed,Default,middleware_operations +middlewareserver_compliance_check,Middleware Server Compliance Check,Default,compliance +middlewareserver_compliance_passed,Middleware Server Compliance Passed,Default,compliance +middlewareserver_compliance_failed,Middleware Server Compliance Failed,Default,compliance # # Company tags diff --git a/db/fixtures/miq_product_features.yml b/db/fixtures/miq_product_features.yml index 4051f3b1575..6e9006a343a 100644 --- a/db/fixtures/miq_product_features.yml +++ b/db/fixtures/miq_product_features.yml @@ -3828,10 +3828,18 @@ :feature_type: control :identifier: middleware_server_control :children: + - :name: Manage Policies + :description: Manage Policies of Middleware Servers + :feature_type: control + :identifier: middleware_server_protect - :name: Edit Tags :description: Edit Tags of Middleware Servers :feature_type: control :identifier: middleware_server_tag + - :name: Check Compliance + :description: Check Compliance of Last Known Configuration + :feature_type: control + :identifier: middleware_server_check_compliance - :name: Reload middleware server :description: Trigger reload operation for Middleware Server :feature_type: admin diff --git a/db/fixtures/miq_user_roles.yml b/db/fixtures/miq_user_roles.yml index 7fe72552bf4..5beb4d452fe 100644 --- a/db/fixtures/miq_user_roles.yml +++ b/db/fixtures/miq_user_roles.yml @@ -123,6 +123,7 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - middleware_server_check_compliance - miq_report_run - miq_report_saved_reports - miq_report_schedules @@ -213,6 +214,7 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - middleware_server_check_compliance - miq_report_run - miq_report_saved_reports - miq_report_schedules @@ -374,6 +376,7 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - middleware_server_check_compliance - miq_report_run - miq_report_saved_reports - miq_report_schedules @@ -474,6 +477,7 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - middleware_server_check_compliance - miq_report_run - miq_report_saved_reports - miq_report_schedules @@ -559,6 +563,7 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - middleware_server_check_compliance - miq_report_run - miq_report_saved_reports - miq_report_schedules @@ -642,6 +647,7 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - middleware_server_check_compliance - miq_report_run - miq_report_saved_reports - miq_report_schedules @@ -809,6 +815,7 @@ - automation_manager - embedded_automation_manager - compute + - middleware_server_check_compliance - miq_request_admin - miq_request_view - miq_template_analyze