Bring your setup to every workstation
Put your dotfiles repository, shell lines and a few packages on every workstation you own with one personal layer.
Put your dotfiles repository, shell lines and a few packages on every workstation you own with one personal layer. Use it when you want each new workstation to feel like yours from the first shell, without setting it up by hand.
Prerequisites
- Ringleader installed, with the Ringleader application running.
- A running workstation that you own. The examples use a workstation named
my-box; replace it with yours. To create one, follow the Quickstart and use your own name. - A dotfiles repository that anyone can clone.
Add your personal layer
Apply a personal layer: one WorkstationConfig that reaches every workstation you own. Personal layers says what one is, and to keep it to settings that are safe on any workstation.
Save this as
my-setup.yaml, with your own dotfiles URL and shell lines:apiVersion: workstations.ringleader.dev/v1 kind: WorkstationConfig metadata: name: my-setup spec: selector: ownerScope: true # no matchLabels, which is what makes it personal dotfilesRepo: url: <your-dotfiles-url> # replace with your repository's clone URL dotfiles: ".bashrc": | alias ll='ls -la' packages: - ripgrepCode, dotfiles and trusted folders describes
dotfilesRepoanddotfiles, and Package installation describespackages.Preview the change. The command changes nothing:
rl diff -f my-setup.yamlThe output shows
my-setupas a new object. The command exits with status 1 when it finds differences, which is not an error.Apply the file. The file names no namespace, so it goes into your current namespace,
localunless you changed it, and reaches every workstation you own there:rl apply -f my-setup.yamlWait until the workstation has applied it:
rl workstation wait my-box --for Configured --timeout 10m -n localThe command returns once the workstation’s
Configuredcondition isTrue.
Check the resolved configuration
Read the configuration that Ringleader works out for a workstation, to confirm that your layer reached it.
Print the resolved configuration:
rl workstation get-resolved-configuration my-box -n localUnder
appliedConfigs, findmy-setup. It hassource: selectorand priority 75.Under
effective, findripgrepinpackages. The same section lists your dotfiles repository.
Read a workstation’s resolved configuration says what each key holds.
Troubleshoot
- If
my-setupisn’t underappliedConfigs, check that the layer’sselectorsetsownerScope: trueand names no labels, and that you own the workstation. A personal layer doesn’t reach a teammate’s workstation. - If
my-setupis listed withrefused: true, itsreasonsays why Ringleader dropped it. - If your dotfiles repository fails to install, the workstation still becomes available.
A step from a personal layer doesn’t block the workstation by default. Read the step’s
error with
rl workstation describe my-box -n local, then fix theurl.
Next steps
- Personal layers says which workstations a personal layer reaches, and how it ranks against other layers.
- Dotfiles repository
lists every field, including
credentialReffor a private repository.