From d2d3c0acdb9b316d04cedf8dcc9edfa765dc5016 Mon Sep 17 00:00:00 2001 From: Doris Ruppert Date: Wed, 29 Mar 2023 13:43:41 +0200 Subject: [PATCH] OPMAAS-3527 added wrong spelled compass ids for Isabel Sauter --- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 7 ++++++- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 7 ++++++- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 7 ++++++- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 7 ++++++- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 7 ++++++- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 7 ++++++- 6 files changed, 36 insertions(+), 6 deletions(-) diff --git a/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index b4cf049..61b2cb5 100644 --- a/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -22,10 +22,15 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { enabled = true selector = "type(Service),tag(\"compass-id:agent-service\",\"compass-id:DPM\",\"compass-id:DPP\",\"compass-id:ecsm\",\"compass-id:PERSEUS\")" } + // for wrongly tagged services we still keep: + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:eCSM\")" + } // others that don't exist in compass, should be removed entity_selector_based_rule { enabled = true - selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\",\"compass-id:ESA\",\"compass-id:UIS\")" } } diff --git a/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index b4cf049..61b2cb5 100644 --- a/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -22,10 +22,15 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { enabled = true selector = "type(Service),tag(\"compass-id:agent-service\",\"compass-id:DPM\",\"compass-id:DPP\",\"compass-id:ecsm\",\"compass-id:PERSEUS\")" } + // for wrongly tagged services we still keep: + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:eCSM\")" + } // others that don't exist in compass, should be removed entity_selector_based_rule { enabled = true - selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\",\"compass-id:ESA\",\"compass-id:UIS\")" } } diff --git a/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index b4cf049..61b2cb5 100644 --- a/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -22,10 +22,15 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { enabled = true selector = "type(Service),tag(\"compass-id:agent-service\",\"compass-id:DPM\",\"compass-id:DPP\",\"compass-id:ecsm\",\"compass-id:PERSEUS\")" } + // for wrongly tagged services we still keep: + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:eCSM\")" + } // others that don't exist in compass, should be removed entity_selector_based_rule { enabled = true - selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\",\"compass-id:ESA\",\"compass-id:UIS\")" } } diff --git a/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index b4cf049..61b2cb5 100644 --- a/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -22,10 +22,15 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { enabled = true selector = "type(Service),tag(\"compass-id:agent-service\",\"compass-id:DPM\",\"compass-id:DPP\",\"compass-id:ecsm\",\"compass-id:PERSEUS\")" } + // for wrongly tagged services we still keep: + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:eCSM\")" + } // others that don't exist in compass, should be removed entity_selector_based_rule { enabled = true - selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\",\"compass-id:ESA\",\"compass-id:UIS\")" } } diff --git a/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index b4cf049..61b2cb5 100644 --- a/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -22,10 +22,15 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { enabled = true selector = "type(Service),tag(\"compass-id:agent-service\",\"compass-id:DPM\",\"compass-id:DPP\",\"compass-id:ecsm\",\"compass-id:PERSEUS\")" } + // for wrongly tagged services we still keep: + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:eCSM\")" + } // others that don't exist in compass, should be removed entity_selector_based_rule { enabled = true - selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\",\"compass-id:ESA\",\"compass-id:UIS\")" } } diff --git a/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index b4cf049..61b2cb5 100644 --- a/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -22,10 +22,15 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { enabled = true selector = "type(Service),tag(\"compass-id:agent-service\",\"compass-id:DPM\",\"compass-id:DPP\",\"compass-id:ecsm\",\"compass-id:PERSEUS\")" } + // for wrongly tagged services we still keep: + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:eCSM\")" + } // others that don't exist in compass, should be removed entity_selector_based_rule { enabled = true - selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + selector = "type(Service),tag(\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\",\"compass-id:ESA\",\"compass-id:UIS\")" } }