Globale Einstellungen
In der global.json werden die Standard Einstellungen gespeichert. Hier wird z.B. der Konfigurationsname für das SAP-System oder die Datenbank hinterlegt.
Aufbau einer Konfigurationsdatei
{
"default": [
{
"moduleType": "sap",
"configurationName": "prod"
},
{
"moduleType": "database",
"configurationName": "prod"
},
{
"moduleType": "logging",
"configurationName": "prod"
}
],
"filter": []
}
Eigenschaft default
In dieser Sektion sind alle Standard-Einstellungen hinterlegt. Pro moduleType kann es jeweils nur einen Eintrag geben.
Eigenschaft moduleType
Über diesen Punkt wird das Modul definiert.
Mögliche Werte sind:
sapdatabaselogging
Eigenschaft configurationName
Mit dem configurationName wird der Dateiname der Konfiguration bestimmt.
- SAP-Konfiguration
- DB-Konfiguration
- Logging-Konfiguration
Wird folgender Eintrag erstellt:
{
"moduleType": "sap",
"configurationName": "prod"
}
➜ wird nach folgender Konfigurationsdatei gesucht: erp-sap-prod.json
Wird folgender Eintrag erstellt:
{
"moduleType": "database",
"configurationName": "prod"
}
➜ wird nach folgender Konfigurationsdatei gesucht: database-prod.json
Wird folgender Eintrag erstellt:
{
"moduleType": "logging",
"configurationName": "prod"
}
➜ wird nach folgender Konfigurationsdatei gesucht: logging-prod.json
Eigenschaft filter
Diese Eigenschaft wird zu diesem Zeitpunkt nicht verwendet.
Welchseln zwischen Produktiv- und Testsystem
Möchte man zwischen dem Produktiv und Testsystem wechseln, so muss nur der configurationName angepasst werden.
- Produktivsystem
- Testsystem
{
"default": [
{
"moduleType": "sap",
"configurationName": "prod"
},
{
"moduleType": "database",
"configurationName": "prod"
},
{
"moduleType": "logging",
"configurationName": "prod"
}
],
"filter": []
}
{
"default": [
{
"moduleType": "sap",
"configurationName": "test"
},
{
"moduleType": "database",
"configurationName": "test"
},
{
"moduleType": "logging",
"configurationName": "test"
}
],
"filter": []
}