The *dch-webhooks* user is used by *dch-webhooks* in order to publish host information when a new machine triggers its _POST /host/online_ webhook. It therefore needs to be able to write to the _host-provisioner_ queue (via the default exchange). The *host-provisioner* user is used by the corresponding consumer to receive the host information and initiate the provisioning process.
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"rabbit_version": "3.13.4",
|
|
"vhosts": [
|
|
{
|
|
"name": "/",
|
|
"metadata": {
|
|
"description": "Default virtual host"
|
|
}
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"name": "xactmon",
|
|
"tags": []
|
|
},
|
|
{
|
|
"name": "host-provisioner",
|
|
"tags": []
|
|
},
|
|
{
|
|
"name": "dch-webhooks",
|
|
"tags": []
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"user": "xactmon",
|
|
"vhost": "/",
|
|
"configure": "^xactmon\\..*",
|
|
"read": "^xactmon\\..*",
|
|
"write": "^xactmon\\..*"
|
|
},
|
|
{
|
|
"user": "dch-webhooks",
|
|
"vhost": "/",
|
|
"configure": "^host-provisioner$",
|
|
"read": "^host-provisioner$",
|
|
"write": "^(host-provisioner|amq\\.default)$"
|
|
},
|
|
{
|
|
"user": "host-provisioner",
|
|
"vhost": "/",
|
|
"configure": "^host-provisioner$",
|
|
"read": "^host-provisioner$",
|
|
"write": "^(host-provisioner|amq\\.default)$"
|
|
}
|
|
]
|
|
}
|