How do I provision a tenant?
The tenant stage on its own — the middle stage of a full system
provision, for when the system and tenant already exist and you only
need to provision the logged-in bootstrap-mode tenant. Tangled into the
library as tenant_provision.ores.
Question
How do I provision the logged-in bootstrap-mode tenant from the shell?
Answer
Log in as the tenant admin (principals are username@hostname), then
provision tenant: publish the first available dataset bundle, install
the organisation (here GLEIF rooted at Barclays Plc — swap for
--source synthetic --seed N for synthetic data), associate the admin
with the operational parties and finalise. The logout afterwards is
required: tenant state is re-evaluated at login.
connect $ORES_NATS_URL login tenant_admin@barclays Secure-Password-123 provision tenant --source gleif --root-lei 213800LBQA1Y9L22JB70 logout exit
./ores.shell ${log_args} ${connect_args} << 'EOF'
<<tenant-provision>>
EOF
Script
projects/ores.shell/scripts/library/tenant_provision.ores — generated
from this recipe by compass build --direct tangle_shell_scripts (do not
edit the .ores by hand).
Tested by
Manual: compass shell -f tenant_provision.ores after the system stage.
See also
- How do I provision the system with Barclays (GLEIF)? — the full flow.