Dotfiles/setup/modules/FreeipaAnsible/ansible
Amir Alexander Abdelbaki b21f415cde fix(ansipa): hostname-binary-free FQDN + push-mode orchestration (NAT path)
Found while running the policy matrix and NAT/WAN scenario in VMs:

- ansipa-enforce-policies.sh and the dev_security-scan generated script called
  `hostname -f`, but the hostname binary (inetutils) is not installed on a
  minimal Arch system, so the enforcer aborted with "hostname: command not
  found" on every run. Add an ansipa_fqdn() helper (hostnamectl / getent /
  /etc/hostname / kernel-hostname fallback chain) and use it; inline the same
  fallback in the standalone scan script.

- Fix two stacked bugs that meant CheckMK push mode — the only monitoring
  transport that works when a client is behind NAT — never functioned:
  * ansipa-checkmk-setup.sh referenced IPA_ADMIN_PASS in the DONE_FLAG
    early-exit path, but that variable was assigned only afterwards, so every
    rerun kinit'd with an empty password, failed silently, and skipped the
    push-mode request writer. Resolve config before the early exit.
  * _write_push_requests parsed `ipa hostgroup-show dev_mon_base` members with
    awk that did `next` on the "Member hosts:" line — but ipa prints members on
    that same line, so the only line with hostnames was discarded and no push
    request was ever written. Rewrite the awk to capture the label line's value
    plus wrapped continuation lines. Verified end-to-end: requests are written
    and CheckMK flips the host to cmk_agent_connection=push-agent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MUhrcFU8J1Hnf7vNqNxZNi
2026-07-02 12:25:03 +02:00
..
lib fix(ansipa): hostname-binary-free FQDN + push-mode orchestration (NAT path) 2026-07-02 12:25:03 +02:00
policies.d fix(ansipa): hostname-binary-free FQDN + push-mode orchestration (NAT path) 2026-07-02 12:25:03 +02:00
ansipa-enforce-policies.sh fix(ansipa): hostname-binary-free FQDN + push-mode orchestration (NAT path) 2026-07-02 12:25:03 +02:00
ansipa-fetch-alerts.sh fix(ansipa): fix ansipa-fetch-alerts.sh alert delivery and acknowledgment 2026-07-01 11:37:00 +02:00
ansipa-install-flatpaks.service feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
ansipa-install-flatpaks.sh feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
ansipa-install-flatpaks.timer setup: add FreeIPA Flatpak group installer (fp_install_* groups) 2026-05-18 11:52:27 +02:00
ansipa-install-modules.service feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
ansipa-install-modules.sh feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
ansipa-install-modules.timer setup: add freeipa-client module and FreeIPA group-based module automation 2026-05-18 11:40:51 +02:00
ansipa-install-packages.sh fix(ansipa): full end-to-end test + multiple bug fixes 2026-07-01 10:30:06 +02:00
ansipa-install.service feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
ansipa-install.timer Add setup/modules/FreeipaAnsible/ansible/ansipa-install.timer 2026-04-27 16:44:18 +02:00
ansipa-scan-notify.sh feat(freeipa): scan result reporting, alert notifications, and SMB share 2026-05-20 12:32:21 +02:00
auto-add-baseuser.sh Update setup/modules/FreeipaAnsible/ansible/auto-add-baseuser.sh 2026-04-27 16:37:39 +02:00
baseuser-sync.path Add setup/modules/FreeipaAnsible/ansible/baseuser-sync.path 2026-04-27 16:39:11 +02:00
baseuser-sync.service Add setup/modules/FreeipaAnsible/ansible/baseuser-sync.service 2026-04-27 16:38:37 +02:00
collect-luks-keys.yml feat(ansipa): store LUKS backup keys on SMB share with KeyAdmin access control 2026-05-20 15:33:17 +02:00
deploy-ansipa-install.yml feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
deploy-ansipa-modules.yml feat(ansipa): unify FreeIPA group naming with dev_* / usr_* prefixes 2026-06-26 11:48:24 +02:00
deploy-ansipa-policies.yml fix(ansipa): Arch package/hostname fixes, safer seed_policystore delegation 2026-07-02 07:01:46 +02:00
deploy-baseuser-sync.yml Add setup/modules/FreeipaAnsible/ansible/deploy-baseuser-sync.yml 2026-04-27 16:39:34 +02:00
manage-sudo-rules.yml feat(freeipa): add policy enforcement for binary blocking, backups, scans, and sudo 2026-05-20 11:34:09 +02:00