Users, environment and system settings
You declare a workstation's login user, environment variables and system settings once, and Ringleader applies them on its configuration passes.
You declare a workstation’s login user, environment variables and system settings once, and Ringleader applies them on its configuration passes. Ringleader picks a login user for you and leaves the system settings as the image sets them, so set these only to change one.
Login user
The login user is the account you, and your tools, work as on the workstation. Ringleader
creates it, and identity is the only place to declare it. With no user set, the login name
is your account name on the computer you created the workstation from.
Ringleader sets the login name when it creates the workstation and never changes it, so the
home folder and your files stay where they are. If the workstation’s own spec or a
WorkstationConfig later declares another user, the workstation keeps its account, numeric IDs
included. It reports the LoginUserChangeNotApplied condition, whose row under
Conditions that report a problem
says what to do. Restarting the workstation does not change the name either. To change it, delete
the workstation and create it again.
The login user’s shell is /bin/bash unless you set shell. groups adds the user to more
groups, such as docker, and uid and gid set the user’s numeric IDs. A changed shell or
groups still reaches an existing workstation.
The login user gets passwordless sudo unless you set sudo: false.
Environment variables
environment sets variables in /etc/environment and in /etc/profile.d. A value can be a ${secret:NAME} reference, which
Ringleader fills in on the workstation.
When several layers set the same variable, the highest-priority layer wins. A workstation’s
own spec.environment loses to every layer that sets the variable, as
Layer merge order
explains. To override a layer, set the variable in a layer of your own at a higher
priority.
System settings
These settings change how the workstation’s operating system is set up:
hostname, the workstation’s host name.timezone, an IANA time zone name such asAmerica/New_York.locale, such asen_US.UTF-8.sysctls, kernel settings, written to/etc/sysctl.d/.limits, resource limits for users, written to/etc/security/limits.d/.
Ringleader merges each of these, and environment, from every layer, and applies each one
as its own step. Each of those steps blocks the workstation when it fails, as
Step failures and retries
explains.
Set the login user
To choose the login user’s name and groups, set spec.identity on the workstation:
spec:
identity:
user: dev
uid: 1000
groups: ["docker"]Set environment variables
To set variables, list them under spec.environment in a layer, so they win over the
workstation’s own settings:
spec:
environment:
EDITOR: vim
DB_URL: ${secret:db-url}Change system settings
To change the host name or the time zone, set them in spec:
spec:
hostname: dev-box
timezone: America/New_YorkNext steps
- Identity and users, Environment and shell and System settings show every field.
- Security updates and the update scan covers keeping the workstation’s software patched.