feat(ansible): add swapfile + resource_limits roles; add CoulombCore to inventory
T01: roles/swapfile — idempotent 4GB swapfile, vm.swappiness=10, fstab entry
T02: roles/resource_limits — PAM nproc caps (512/1024), systemd user-1000.slice
memory limits (1500M/512M); templated per-host via host_vars
- inventory/host_vars/CoulombCore.yml — host-specific vars for both roles
- inventory/servers.yaml — add CoulombCore with id_ops SSH key
- inventory_from_yaml.py — load host_vars files into Ansible hostvars
- playbooks/bootstrap.yaml — include swapfile + resource_limits roles
- workplans/WP-0004 — flag T04/T09/T10 needs_human, add CoulombCore-local convergence note
Codifies manual INC-002 hardening. See RAIL-HO-WP-0004-T01/T02.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e10789bdd2
commit
ff59d4e0f8
11 changed files with 163 additions and 6 deletions
|
|
@ -0,0 +1,6 @@
|
|||
# Managed by Ansible (resource_limits role)
|
||||
# Caps process count for {{ resource_limit_user | default('tegwick') }}
|
||||
# to prevent runaway agents from exhausting the kernel PID table.
|
||||
# See INC-002 (2026-03-26) for root cause context.
|
||||
{{ resource_limit_user | default('tegwick') }} soft nproc {{ nproc_soft | default(512) }}
|
||||
{{ resource_limit_user | default('tegwick') }} hard nproc {{ nproc_hard | default(1024) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue