Files
computer-playbook/roles/sys-daemon
kevinveenbirkenbachandClaude Opus 5.5 18ea75049e perf(packages): install every role's packages per host in one run at deploy start
A constructor task after the update role and the swarm auto-placement installs,
in one package-manager call, every package id of every role the host's groups
may run: meta dependencies, service edges and every role invocation readable
from tasks and handlers, conditions ignored. Ids that must stay with their role
(a conditional install, a repository added first, a need before update) carry
batch: false in meta/packages.yml and keep their task; roles reference shared
root ids with shared: true. 42 per-role install tasks go, and a lint keeps the
split: no batched id in a role task, none in a role run ahead of the batch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 22:54:36 +01:00
..
…
…

sys-daemon

Description

Role to reset and configure the systemd manager for Infinito.Nexus.
It ensures a clean state of the manager configuration and applies default timeout values.

Overview

  • Purges the systemd manager drop-in directory if requested.
  • Validates all active unit files before reload/reexec.
  • Applies default timeout values for systemd manager behavior.
  • Provides handler-based reload/reexec for systemd.

Cosmos

The diagram places sys-daemon in the Infinito.Nexus cosmos: the components it deploys (capabilities), the central services it consumes (dependencies), and its outward reach (federation and bridged external networks).

flowchart LR
    subgraph role [sys-daemon 💻]
        svc_daemon["daemon"]
    end

Solid 1:1 edges are fixed relationships; dashed 0..1 edges are conditional (enabled only in matching deployments); red 0..0 edges are turned off in this role. Node markers show the role's deploy modes (💻 host, 🐳 compose, 🐝 swarm); ❌ marks a service that is explicitly turned off, and ⚙️ an Ansible role dependency declared in meta/main.yml.

Features

  • Drop-in Purge: Optionally remove /etc/systemd/system.conf.d contents.
  • Manager Defaults: Deploys custom timeouts via timeouts.conf.
  • Validation: Uses systemd-analyze verify before reload.
  • Integration: Triggers daemon-reload or daemon-reexec safely.

Further Resources

Credits

Implemented by Kevin Veen-Birkenbach. Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).