| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
The setting unit names it (the module: enstate.service). After a boot
without state it failed; an accepted --apply starts it (--no-block,
with the lock released), so it serves the views and is no longer
failed.
|
| |
|
|
|
|
| |
The receptor makes the state directory 0700 whoever created it (a
deploy copying into incoming/, say), and the module has tmpfiles keep it
so.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
enstate.service reruns on a switch when the schema changes. A unit of
its own, enstate-switch.service, takes what waits otherwise: a
submission in incomingDir, or one staged. switch-to-configuration
restarts sysinit-reactivation.target on every switch, which starts it,
and triggering conditions keep it from running when nothing waits. The
check before a switch uses the new generation's enstate, schema and
configuration, and runs on a host without enstate, too: its first
switch's state can wait in incomingDir. Subtests of the VM test: staged
under an unchanged schema, brought by the switch (without the warning
the activation-restart-list gives); a waiting submission taken by the
switch that needs it; one refused refusing it.
|
|
|
The module makes the schema from options (/etc/enstate/schema.json),
every slot its own view unless it says otherwise, and names the views'
paths (read-only `path` options) for the services that read them. It
configures none of them: a service whose LoadCredential= reads a view is
ordered after the unit that puts the views in place, by itself. That
unit runs --migrate at boot and when the schema changes; the check
before a switch is --migrate --dry-run against the new schema. The
test: a consumer with a LoadCredential= of its own; apply from a source
list, rotate, switch across a rename and back, a switch refused, a
reboot.
|