Add kosmos_strfry::member_bridge: a strfry router stream group that subscribes to the local submission relay (ws://localhost:7778) and writes member-authored events into the production database. dir = "down" keeps it strictly one-way, and pluginDown is the new LDAP-only policy (ldap-only-policy.ts) from akkounts extras/strfry, so membership is decided per event by LDAP with no member list. The two promotion paths (approved_sync, member_bridge) are enabled as role overrides in role[strfry_submission], not in the production environment config. Also add a render regression test for the router config and update the runbook. Refs raucao/marco#97.
34 lines
955 B
Ruby
34 lines
955 B
Ruby
name "strfry_submission"
|
|
|
|
override_attributes(
|
|
# Node 24 LTS is required by the submission write policy
|
|
# (/opt/strfry/submission-policy.mjs). This override is scoped to this role
|
|
# only; the global kosmos_nodejs default (14.21.3) is intentionally left
|
|
# untouched for every other node.
|
|
"kosmos_nodejs" => {
|
|
"version" => "24.22.2"
|
|
},
|
|
|
|
# Enable the two promotion paths that feed the production relay from the
|
|
# submission pipeline. They are toggled here (role-scoped) rather than in the
|
|
# production environment config, so the switches travel with this feature's
|
|
# roles. The recipes themselves live in role[strfry] (the relay node runs both
|
|
# roles).
|
|
"strfry" => {
|
|
"approved_sync" => {
|
|
"enabled" => true
|
|
},
|
|
"member_bridge" => {
|
|
"enabled" => true
|
|
}
|
|
}
|
|
)
|
|
|
|
run_list %w(
|
|
role[base]
|
|
role[kvm_guest]
|
|
kosmos-nodejs::default
|
|
kosmos_strfry_submission::default
|
|
kosmos_strfry_submission::firewall
|
|
)
|