brother: the admin process becomes the device process, brother-device, with device-asks and device-answers (issue 1453, ADR 0468 clause 1)

This commit is contained in:
2026-10-20 21:23:28 +02:00
parent adfb61c053
commit feada9fb14
10 changed files with 118 additions and 118 deletions
+15 -15
View File
@@ -67,18 +67,18 @@
"path": "${dir:state}/admin-password.secret",
"issued-by": "outside",
"prompt": "the admin password of the Brother printer",
"owner": "brother-admin"
"owner": "brother-device"
},
"broker-admin": {
"path": "${dir:state}/broker-admin.secret",
"owner": "brother-admin"
"broker-device": {
"path": "${dir:state}/broker-device.secret",
"owner": "brother-device"
}
},
"streams": [
{
"name": "printer-asks",
"name": "device-asks",
"events": [
"printer.asked"
"device.asked"
],
"max-age-days": 1,
"max-mib": 8,
@@ -88,7 +88,7 @@
],
"state": [
{
"name": "printer-answers",
"name": "device-answers",
"ttl-seconds": 600
}
],
@@ -141,7 +141,7 @@
{
"id": "account",
"type": "user",
"name": "brother-admin",
"name": "brother-device",
"shell": "/usr/bin/nologin"
},
{
@@ -171,29 +171,29 @@
"template": "files/settings.json"
},
{
"id": "admin",
"id": "device",
"type": "process",
"name": "brother-admin",
"name": "brother-device",
"artifact": "tools",
"run": [
"./brother",
"admin"
"device"
],
"user": "brother-admin",
"user": "brother-device",
"env": {
"BROTHER_SETTINGS": "${dir:state}/settings.json",
"BROTHER_ADMIN_PASSWORD": "${dir:state}/admin-password.secret",
"BROTHER_BROKER": "${dir:state}/broker-admin.secret"
"BROTHER_BROKER": "${dir:state}/broker-device.secret"
},
"restart-on": [
"settings"
],
"bus": {
"queues": [
"printer-asks"
"device-asks"
],
"state": [
"printer-answers"
"device-answers"
]
},
"health": {