| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
systemd.services.<name>.restartIfCredentialsChange and
reloadIfCredentialsChange replace hrm.systemd.services.<name>.…; the
alias for stockholm's krebs.systemd.services now points there. Units
can't be made from config.systemd.services itself, so the trigger
services become two templates, credentials-restart@ and
credentials-reload@, which call systemctl themselves; only the path units
remain per service, by their old names. Without comparing checksums
any more: the path units fire when a credential is written, and nothing
rewrites one unchanged.
|
| |
|
|
|
|
|
|
| |
enstate.channels.<channel>.slots.<slot>.source, in enstate's source
syntax, run on the deploying host; enstate.sourceLists gathers them per
channel, complete if every slot of the channel names a source, for the
deploying host to evaluate. Shared configs set sources with
lib.mkDefault, for hosts to override.
|
| |
|
|
|
|
| |
From the populated source, as the NixOS module, so both are of the same
revision; with the source's Cargo.json if it has one, else from its
Cargo.lock. The package set gets the inputs for it.
|
| |
|
|
|
| |
For its NixOS module, which every host imports and only hosts with
enstate.enable use.
|
| |
|
|
|
|
| |
The translation to nft is text, and iptables-restore-translate crashes
under emulation ("Failed to initialize nft: Protocol not supported"), as
for qi, built on zu.
|
| |
|
|
| |
Retiolum runs on tincr and its module.
|
| |
|
|
| |
tinc defaults to tun in router mode, but tincr to a dummy device, which carries no packets.
|
| |
|
|
| |
tinc_pre's sbin is a link to bin, and tincr has only bin.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Build pushed branches of git repositories. Each instance in
hrm.ci.instances serves one repository: its hook queues each pushed branch,
and hrm-ci-NAME.service runs the instance's build script for each job its
jobs script lists, keeping request.json, build.json and a log per job for
every run in /var/lib/hrm-ci/NAME/runs.
Dependencies are branches of other repositories, unpacked into the build's
$HOME. Their hooks queue rebuilds of all branches, and each request
records the dependency revisions it gets built against.
Pushed trees are untrusted. Each instance runs as its own user, with a
sandboxed service that can write only to its state directory, can't see
/home, and limits each script run with timeout(1). Job names are
restricted to [A-Za-z0-9_][A-Za-z0-9._-]*.
|
| |
|
|
|
|
|
| |
makeHooks links a repo's post-receive hook into the hooks directory, where
git runs it after updating the refs. The generated pre-receive no longer
also runs it inline, where it ran before the refs were updated and with
its stdin already consumed.
|
| |
|
|
| |
Each instance can run a continuum of its own, pkgs.continuum by default.
|
| |
|
|
|
|
|
|
| |
An instance with a domain gets an nginx virtual host passing requests on
to its HTTP API, over a Unix socket in its runtime directory. The socket
is the instance's group's (continuum-<name>, made for it), which nginx's
user joins; continuum makes it 0660, and the directory is 0750. The
instance checks who users are itself, so requests pass on as they come.
|
| |
|
|
| |
An instance runs as a dynamic user unless it names one.
|
| |
|
|
|
|
|
| |
credentials maps names to secret files. They reach the instance by
LoadCredential, so settings refer to them as
${env:CREDENTIALS_DIRECTORY}/<name>, and the instance restarts when one
changes.
|
| |
|
|
|
|
|
|
| |
state-file and document-file, and where they apply store-file,
store-vote-record and tor.state-dir, default to files in
${env:STATE_DIRECTORY}. The defaults go in when the file is written
rather than through the module system: a default that depends on other
settings of the same free-form set recurses infinitely there.
|
| |
|
|
|
|
|
|
| |
hrm.continuum.instances.<name> makes a service continuum-<name> from
settings, which are continuum's options, written as TOML into the store.
The service runs as a dynamic user with a state directory and nothing
but the network. It restarts always, as continuum exits with status 0
when a transport stops.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
reloadIfCredentialsChange reloads the service when its credentials
change, with RefreshOnReload=credentials so the reload sees the new
ones. A service that can't be reloaded is restarted. It is off for
every service so far: tinc's reload doesn't read its private key again,
and the others haven't been checked. An assertion requires ExecReload=
or Type=notify-reload, because with RefreshOnReload= set, systemd
"reloads" any other service by refreshing its credentials without
telling it.
|
| |
|
|
|
| |
systemctl restart starts a service that isn't running; try-restart
doesn't.
|
| | |
|
| | |
|
| |
|
|
|
| |
Units were made for every service in hrm.systemd.services, whatever
restartIfCredentialsChange said. charybdis relied on that.
|
| |
|
|
|
| |
Make the temporary file next to the cache, so mv renames it rather
than copying it from /tmp.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
The file was modules/krebs-systemd.nix to stay clear of
modules/systemd.nix. krebs.systemd.services stays as an alias for
stockholm's tinc, repo-sync, and exim-smarthost.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This fixes an issue causing ejabberd to abort with following error
message:
** FATAL ** {error,{"Cannot rename disk_log file",latest_log,
"/var/lib/ejabberd/PREVIOUS.LOG",
{log_header,trans_log,"4.3","4.20.4.1",
ejabberd@localhost,
{1665,261856,453060}},
{file_error,"/var/lib/ejabberd/PREVIOUS.LOG",erofs}}}
|
| | |
|