Configuration merging and resolution
A workstation's resolved configuration is everything it is set up to match, after Ringleader merges its own settings with every layer that reaches it.
A workstation’s resolved configuration is everything it is set up to match, after Ringleader merges its own settings with every configuration layer that reaches it. Read it when a workstation doesn’t have what you expected: it shows the merged result and which layers made it.
Sources of the resolved configuration
Ringleader works out the resolved configuration when you ask for it. It starts from the workstation and every layer that reaches it, by label or by name. For a cloud workstation, it also uses the CloudIdentity that gives Ringleader its cloud credentials. It uses the same code that configures the workstation, so the answer is what the workstation is set up to match.
For a workstation stored in the Ringleader console, the console works out the answer, not your computer. That is the answer the console uses to configure the workstation.
The workstation’s status doesn’t hold the resolved configuration. Its
status.config.effectiveHash is a fingerprint of the configuration Ringleader wants the
workstation to have.
Resolved configuration contents
The resolved configuration is longer than what you declared. It also carries the defaults Ringleader filled in for you:
- the login user and shell
- the diagnostics settings
- the SSH keys Ringleader authorizes on the workstation
- the version of the in-VM agent the workstation should run
${secret:NAME} references appear as written, never as their values.
Paste it into a ticket
Read a workstation’s resolved configuration
To print the resolved configuration for a workstation, run:
rl workstation get-resolved-configuration my-box -n localAdd -o json for JSON. Three parts of the output answer most questions:
appliedConfigs: which layers shaped the workstation, and which were dropped and why.effective: the whole merged result.configCurrency: whether the workstation’s verdict on its configuration is still up to date.
rl workstation get-resolved-configuration
says what every key holds. In the terminal UI, press V on a workstation to describe it,
then c, as The resolved configuration
describes.
Find which layer set a value
Not every setting goes to the highest-priority layer: lists combine, and a few blocks keep
the workstation’s own value.
Layer merge order
says how each kind of setting merges. When a value in effective isn’t the one you
expected, follow these steps:
Check the workstation’s own settings, and the defaults in Resolved configuration contents. Neither appears in
appliedConfigs.rl workstation get my-box -n local -o yamlIn
appliedConfigs, find the layers with the highestpriority, and read them, highest first, to find the one that sets the value:rl workstationconfig get <name> -n <namespace> -o yamlIf the layer you expected isn’t there, check whether it is listed with
refused: true. Itsreason, such asauthor-lacks-reach, says why it was dropped.
Wait for a change to be applied
After you change a workstation or one of its layers, the resolved configuration changes at once, and the workstation then applies it. To wait until it has, run:
rl workstation wait my-box --for Configured --timeout 10m -n localThe command returns once the workstation’s Configured condition, which says whether it
has applied its configuration, is True.
rl <kind> wait lists its other
options.
configCurrency in the resolved configuration says the same thing. It is current when
the Configured verdict was worked out from the workstation and its layers as they are
now. It is stale when one of them has changed since.
Next steps
- Step failures and retries explains what happens when a step in the configuration fails.
rl diffshows how applying a file would change each object, before you apply it. It compares the objects, not their merged result.