app-id added and management zone was re-onboarded

OPMAAS-3347
SLW\ARNAUA 2023-01-31 10:04:59 +01:00
parent 0f1f675c04
commit 505b14bcc9
28 changed files with 181 additions and 131 deletions

View File

@ -1,140 +1,39 @@
{
"dimensionalRules": [],
"name": "{{.name}}",
"rules": [
{
"conditions": [
"entitySelectorBasedRules": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
}
},
"key": {
"attribute": "SERVICE_TAGS"
}
}
],
"enabled": true,
"propagationTypes": [
"SERVICE_TO_PROCESS_GROUP_LIKE",
"SERVICE_TO_HOST_LIKE"
],
"type": "SERVICE"
},
{
"conditions": [
"enabled": true,
"entitySelector": "type(Service),tag({{.compassIDs}})"
},
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
}
},
"key": {
"attribute": "PROCESS_GROUP_TAGS"
}
}
],
"enabled": true,
"propagationTypes": [
"PROCESS_GROUP_TO_HOST"
],
"type": "PROCESS_GROUP"
},
{
"conditions": [
"enabled": true,
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))"
},
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
}
},
"key": {
"attribute": "HOST_TAGS"
}
}
],
"enabled": true,
"type": "HOST"
},
{
"conditions": [
"enabled": true,
"entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})"
},
{
"comparisonInfo": {
"caseSensitive": true,
"negate": false,
"operator": "CONTAINS",
"type": "STRING",
"value": "{{.tag}}"
},
"key": {
"attribute": "CLOUD_APPLICATION_NAMESPACE_NAME"
}
}
],
"enabled": true,
"propagationTypes": [],
"type": "CLOUD_APPLICATION_NAMESPACE"
},
{
"conditions": [
"enabled": true,
"entitySelector": "type(HOST),tag({{.compassIDs}})"
},
{
"comparisonInfo": {
"caseSensitive": true,
"negate": false,
"operator": "CONTAINS",
"type": "STRING",
"value": "{{.tag}}"
"enabled": true,
"entitySelector": "type(Service),tag({{.appIDs}})"
},
"key": {
"attribute": "CLOUD_APPLICATION_NAME"
}
}
],
"enabled": true,
"propagationTypes": [],
"type": "CLOUD_APPLICATION"
},
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "app-id",
"value": "APP-18886"
}
},
"key": {
"attribute": "SERVICE_TAGS",
"type": "STATIC"
}
"enabled": true,
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.appIDs}}))"
},
{
"enabled": true,
"entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.appIDs}})"
},
{
"enabled": true,
"entitySelector": "type(HOST),tag({{.appIDs}})"
}
],
"enabled": true,
"propagationTypes": [
"SERVICE_TO_PROCESS_GROUP_LIKE",
"SERVICE_TO_HOST_LIKE"
],
"type": "SERVICE"
}
]
],
"rules": []
}

View File

@ -1,6 +1,7 @@
config:
- CDXCC: default.json
- CDnewComponentTag: default.json
CDXCC:
CDnewComponentTag:
- name: CD_XCC
- tag: XCC
- compassIDs: \"compass-id:xcc-campaigns\",\"compass-id:xcc-settings\",\"compass-id:xcc-statistics\",\"compass-id:xcc-cmgr\",\"compass-id:xcc-users\",\"compass-id:xcc-next-campaigns\",\"compass-id:xcc-next-legacy-facade\"
- appIDs: \"app-id:APP-18886\"

View File

@ -0,0 +1,4 @@
### How to configure management zones?
Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Management+Zones) page to configure your management zones.

View File

@ -0,0 +1,140 @@
{
"dimensionalRules": [],
"name": "{{.name}}",
"rules": [
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
}
},
"key": {
"attribute": "SERVICE_TAGS"
}
}
],
"enabled": true,
"propagationTypes": [
"SERVICE_TO_PROCESS_GROUP_LIKE",
"SERVICE_TO_HOST_LIKE"
],
"type": "SERVICE"
},
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
}
},
"key": {
"attribute": "PROCESS_GROUP_TAGS"
}
}
],
"enabled": true,
"propagationTypes": [
"PROCESS_GROUP_TO_HOST"
],
"type": "PROCESS_GROUP"
},
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
}
},
"key": {
"attribute": "HOST_TAGS"
}
}
],
"enabled": true,
"type": "HOST"
},
{
"conditions": [
{
"comparisonInfo": {
"caseSensitive": true,
"negate": false,
"operator": "CONTAINS",
"type": "STRING",
"value": "{{.tag}}"
},
"key": {
"attribute": "CLOUD_APPLICATION_NAMESPACE_NAME"
}
}
],
"enabled": true,
"propagationTypes": [],
"type": "CLOUD_APPLICATION_NAMESPACE"
},
{
"conditions": [
{
"comparisonInfo": {
"caseSensitive": true,
"negate": false,
"operator": "CONTAINS",
"type": "STRING",
"value": "{{.tag}}"
},
"key": {
"attribute": "CLOUD_APPLICATION_NAME"
}
}
],
"enabled": true,
"propagationTypes": [],
"type": "CLOUD_APPLICATION"
},
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "app-id",
"value": "APP-18886"
}
},
"key": {
"attribute": "SERVICE_TAGS",
"type": "STATIC"
}
}
],
"enabled": true,
"propagationTypes": [
"SERVICE_TO_PROCESS_GROUP_LIKE",
"SERVICE_TO_HOST_LIKE"
],
"type": "SERVICE"
}
]
}

View File

@ -0,0 +1,6 @@
config:
- CDXCC: default.json
CDXCC:
- name: CD_XCC
- tag: XCC