cds add enterprise-messaging
This commit is contained in:
31
event-mesh.json
Normal file
31
event-mesh.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"emname": "samples-emname",
|
||||||
|
"version": "1.1.0",
|
||||||
|
"namespace": "default/samples/1",
|
||||||
|
"options": {
|
||||||
|
"management": true,
|
||||||
|
"messagingrest": true,
|
||||||
|
"messaging": true
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"topicRules": {
|
||||||
|
"publishFilter": [
|
||||||
|
"${namespace}/*"
|
||||||
|
],
|
||||||
|
"subscribeFilter": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"queueRules": {
|
||||||
|
"publishFilter": [
|
||||||
|
"${namespace}/*"
|
||||||
|
],
|
||||||
|
"subscribeFilter": [
|
||||||
|
"${namespace}/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"authorities": [
|
||||||
|
"$ACCEPT_GRANTED_AUTHORITIES"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
mta.yaml
7
mta.yaml
@@ -28,6 +28,7 @@ modules:
|
|||||||
requires:
|
requires:
|
||||||
- name: samples-db
|
- name: samples-db
|
||||||
- name: samples-auth
|
- name: samples-auth
|
||||||
|
- name: samples-messaging
|
||||||
|
|
||||||
- name: samples-db-deployer
|
- name: samples-db-deployer
|
||||||
type: hdb
|
type: hdb
|
||||||
@@ -85,3 +86,9 @@ resources:
|
|||||||
config:
|
config:
|
||||||
xsappname: samples-${org}-${space}
|
xsappname: samples-${org}-${space}
|
||||||
tenant-mode: dedicated
|
tenant-mode: dedicated
|
||||||
|
- name: samples-messaging
|
||||||
|
type: org.cloudfoundry.managed-service
|
||||||
|
parameters:
|
||||||
|
service: enterprise-messaging
|
||||||
|
service-plan: default
|
||||||
|
path: ./event-mesh.json
|
||||||
|
|||||||
@@ -49,6 +49,9 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"[production]": {
|
"[production]": {
|
||||||
"auth": "xsuaa"
|
"auth": "xsuaa"
|
||||||
|
},
|
||||||
|
"messaging": {
|
||||||
|
"kind": "enterprise-messaging"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,34 @@
|
|||||||
{
|
{
|
||||||
"scopes": [
|
"scopes": [
|
||||||
{
|
{
|
||||||
"name": "$XSAPPNAME.admin",
|
"name": "$XSAPPNAME.admin",
|
||||||
"description": "admin"
|
"description": "admin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$XSAPPNAME.emcallback",
|
||||||
|
"description": "Enterprise-Messaging Callback Access",
|
||||||
|
"grant-as-authority-to-apps": [
|
||||||
|
"$XSSERVICENAME(samples-messaging)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$XSAPPNAME.emmanagement",
|
||||||
|
"description": "Enterprise-Messaging Management Access"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"role-templates": [
|
"role-templates": [
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"scope-references": [
|
"scope-references": [
|
||||||
"$XSAPPNAME.admin"
|
"$XSAPPNAME.admin"
|
||||||
],
|
],
|
||||||
"description": "cap samples multi-service shared-db"
|
"description": "cap samples multi-service shared-db"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"authorities-inheritance": false
|
"authorities-inheritance": false,
|
||||||
|
"authorities": [
|
||||||
|
"$XSAPPNAME.emmanagement",
|
||||||
|
"$XSAPPNAME.mtcallback"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user