How dzo resolves an instance¶
Every command that acts on an instance first resolves it. dzo combines the
operator configuration, the site repository and the download cache into one
complete description. dzo instance show <name> prints it as YAML, and
dzo config validate resolves every instance in the site checkout.
dzo instance show deerisle
dzo instance show deerisle --quadlet # the container unit dzo would generate
Defaults¶
site.yaml can set image (the runtime image, default
localhost/dzo-runtime:latest) and a defaults block. It can contain
rcon_bind, params, updates, restarts, health, restart_limit, stop,
notify, container, backup, logs, admin_map, welcome and messages,
with the keys of instance.yaml. The complete file is in site.yaml.
dzo takes whatever an instance leaves unset from there, field by field; a value
set in instance.yaml always wins.
image: localhost/dzo-runtime:latest
defaults:
updates: {policy: notify, check_interval: 1h}
health: {startup_timeout: 45m}
Unknown keys in site.yaml and instance.yaml are errors, so a typo is
never silently ignored.
Mods¶
An entry in mods is either a workshop id or a local servermod:
mods:
- {id: 1559212036}
- {local: dzo-admin, server: true}
A local mod must set server: true (or, for debugging only,
debug_client: true, see Debugging a client mod you build yourself). Its name must have only
letters, digits, _, . and -, and must not be purely numeric. It is read from
localmods/<name>/ in the site repository, or from a local_mods entry in
site.yaml:
local_mods:
tools: {url: https://<host>/tools-1.0.tar.gz, sha256: <hash>}
other: {path: /srv/build/@Other}
Inside the container a workshop mod is mounted as /dayz/@<id> and a local
mod as /dayz/@<name>.
What is not installed yet¶
Resolving never downloads anything. dzo looks up the server build and mod
generations in the cache and lists whatever is missing under missing in the
output. dzo config validate reports it as a note. dzo builds the container
unit only once nothing is missing, because it mounts the exact generations.
Checks¶
Resolving fails for an unknown product, mission preset, overlay or local mod, a
malformed container.mounts entry, and for two instances that use the same
port.