Team configuration - multiple db2 subsystem for the same lpar #1521
-
Hi, How can I specify multiple db2 subsystem for the same lpar in the team config? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, I assume by subsystems, you mean the "database" property on a DB2 profile? If so, you can take advantage of nested profiles where the child profiles inherit properties from the parent, like the following example: {
"$schema": "./zowe.schema.json",
"profiles": {
"lpar1": {
"properties": {
"host": "example.com",
"rejectUnauthorized": true
},
"profiles": {
"db2": {
"properties": {
"port": 1234
},
"profiles": {
"d10p": {
"type": "db2",
"properties": {
"database": "D10P"
}
},
"d10d": {
"type": "db2",
"properties": {
"database": "D10D"
}
}
},
"secure": [
"user",
"password"
]
},
"zosmf": {
"type": "zosmf",
"properties": {
"port": 443
}
}
},
"secure": [
"user",
"password"
]
}
},
"defaults": {
"db2": "lpar1.db2.d10p",
"zosmf": "lpar1.zosmf"
},
"autoStore": true
} The above zowe.config.json defines 3 profiles:
Further examples of zowe.config.json files using advanced features like profile nesting can be found here: https://docs.zowe.org/stable/user-guide/cli-using-team-configuration-team-leaders#profile-scenarios |
Beta Was this translation helpful? Give feedback.
Hello,
I assume by subsystems, you mean the "database" property on a DB2 profile? If so, you can take advantage of nested profiles where the child profiles inherit properties from the parent, like the following example: