From 9e8622ca00993444003c8c3a479bb1ab060a948f Mon Sep 17 00:00:00 2001 From: Marcel Hild Date: Fri, 13 Jan 2017 17:12:33 +0100 Subject: [PATCH] add ansible events to settings --- .../ansible_tower/configuration_manager/event_parser.rb | 2 +- config/settings.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/ansible_tower/configuration_manager/event_parser.rb b/app/models/manageiq/providers/ansible_tower/configuration_manager/event_parser.rb index 4c355e42fb2..fb391b2d9fb 100644 --- a/app/models/manageiq/providers/ansible_tower/configuration_manager/event_parser.rb +++ b/app/models/manageiq/providers/ansible_tower/configuration_manager/event_parser.rb @@ -1,7 +1,7 @@ module ManageIQ::Providers::AnsibleTower::ConfigurationManager::EventParser def self.event_to_hash(event, ems_id) { - :event_type => event.operation, + :event_type => "ansible_tower_#{event.operation}", :source => "ANSIBLE_TOWER", :message => event.changes.to_s, :timestamp => event.timestamp, diff --git a/config/settings.yml b/config/settings.yml index f380ac160a7..d1fa5dbe1e9 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -230,6 +230,10 @@ :name: Application :configuration: :critical: + - ansible_tower_create + - ansible_tower_update + - ansible_tower_delete + - ansible_tower_associate - ClusterReconfiguredEvent - EnterMaintenanceMode_Task_Complete - ExitMaintenanceMode_Task_Complete