Adding and installing a new realm#
Adding and installing a new realm as current realm#
exordos settings set-realm <realm_name> \
--endpoint <endpoint_url> \
--check_updates \
--current
Example:
exordos settings set-realm production --endpoint http://10.40.0.2:11010 --current
Adding and installing a new realm without setting it as current realm#
exordos settings set-realm <realm_name> \
--endpoint <endpoint_url> \
--check_updates \
--skip_tls_verify
Example:
exordos settings set-realm production --endpoint http://10.40.0.2:11010
Get current realm#
exordos settings current-realm
List all realms#
exordos settings list-realms
Example:
user@user:~$ exordos settings list-realms
default:
check_updates: true
contexts:
admin:
password: admin
user: admin
current-context: admin
endpoint: http://10.20.0.2:11010
production:
check_updates: true
endpoint: http://10.40.0.2:11010
skip_tls_verify: true
Set current realm#
exordos settings use-realm production
Display exordos settings#
exordos settings view
Example:
user@user:~$ exordos settings view
current-realm: production
endpoint: http://10.20.0.2:11010
realms:
default:
check_updates: true
contexts:
admin:
password: admin
user: admin
current-context: admin
endpoint: http://10.20.0.2:11010
production:
check_updates: true
endpoint: http://10.40.0.2:11010
skip_tls_verify: true
schema_version: 1
Set authorization context#
exordos settings set-context <context_name> \
--user <user> \
--password <password> \
--access_token <access_token> \
--refresh_token <refresh_token> \
<realm_name>
Example:
exordos settings set-context --name "Admin Token" --access_token "...56riyO2U_gMjfYDwg" \
--refresh_token "...bZ1BENYKg" City
Bootstrapping a managed realm#
When running exordos bootstrap --realm-spec /etc/exordos/realm_spec.json,
the CLI reads element names and repository definitions from the realm spec:
{
"elements": ["exordos_s3", "exordos_db"],
"repo_url": "http://10.40.0.1:8082/repo/00000000-0000-0000-0000-000000000000/exordos-elements/",
"repository": [{
"uuid": "fc040e42-439d-41cb-b2e7-7b40dca58810",
"name": "realm-repo",
"description": "Realm upload repository",
"project_id": "00000000-0000-0000-0000-000000000000",
"status": "NEW",
"priority": 2048,
"refresh_rate": 60,
"sync_mode": "lazy",
"driver_spec": {
"kind": "nginx",
"url": "http://10.40.0.1:8082/repo/00000000-0000-0000-0000-000000000000/exordos-elements/",
"username": null,
"password": null
}
}]
}
Explicit --elements options replace the list from the realm spec.
If the field is absent or contains an empty list, the default bootstrap is used.
A single dictionary in repository is converted to a one-item list.
Repository objects are passed unchanged into the Core config drive alongside
existing URL entries. Core validates their fields and registers explicit UUIDs
idempotently. The internal URL points to an element index readable without
authorization, allowing Core to activate and refresh the repository.
repo_url remains in the config drive when full repository definitions are
present, without adding another URL-only repository. For older realm specs
without definitions, a non-empty repo_url is added to the bootstrap repositories.
Existing repositories, including those specified with --repository, are
preserved. If the exact URL is already in the list, it is not added again.
An absent or empty repo_url leaves the repository list unchanged.
Initial hypervisor settings#
The optional hypervisor object in realm_spec.json configures the initial
hypervisor:
{
"hypervisor": {
"name": "realm-host",
"description": "Realm hypervisor",
"avail_cores": 16,
"avail_ram": 65536,
"cores_ratio": 4.0,
"ram_ratio": 1.5
}
}
RAM is in MB. Ratios must be nonnegative. Omitted fields use CLI defaults;
explicit --hyper-* options override individual fields from the realm spec,
including zero values and empty descriptions. --stand-spec takes precedence
over both sources. Existing pools are not updated by bootstrap.