Initial infrastructure mono-repo scaffold

Consolidates nixos, docker, raspi, and debian-configuration into a single
infrastructure-as-code repo. Includes:

- ansible/: full inventory + proxmox-hardening, freeipa, and raspberrypi
  roles (converted from debian-configuration bash scripts)
- terraform/: Proxmox VMs, Dynu DNS, Pi-hole (decommissioned stub),
  Docker container catalog — migrated from docker/infrastructure/terraform/
- stacks/docker/, stacks/raspi/, nixos/: placeholder READMEs pending
  git subtree population (see implementation plan)
- docs/: internal MkDocs site with architecture, network topology, runbooks,
  and drift-detection guide; external sanitized site
- scripts/: drift-detect.sh, docs-build.sh, install-hooks.sh, check-secrets.sh
- CI: secret-scan (push/PR), drift-detect (daily), docs-build (on change)
- Pi-hole removed throughout — DNS is FreeIPA, DHCP is router

See docs/internal/implementation-plan.md for the phased rollout after
pushing to Gitea.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UvNjoxTWEDkhXsd1Dq2ETP
This commit is contained in:
beatzaplentyandClaude Sonnet 4.6 committed 2026-07-30 07:07:47 +10:00
commit f85c65870f
125 files changed
+8186

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
---
- name: FreeIPA server provisioning
hosts: freeipa
become: true
gather_facts: true
pre_tasks:
- name: Confirm Rocky Linux 9
ansible.builtin.assert:
that:
- ansible_distribution == "Rocky"
- ansible_distribution_major_version == "9"
fail_msg: "FreeIPA role targets Rocky Linux 9 only."
tags: always
roles:
- role: freeipa
tags: freeipa
+8
View File
@@ -0,0 +1,8 @@
---
# Connectivity check — verify all hosts are reachable before a real run.
- name: Ping all hosts
hosts: all
gather_facts: false
tasks:
- name: Ping
ansible.builtin.ping:
+18
View File
@@ -0,0 +1,18 @@
---
- name: Proxmox VE hardening
hosts: proxmox
become: true
gather_facts: true
pre_tasks:
- name: Confirm this is a Proxmox VE host
ansible.builtin.assert:
that:
- ansible_os_family == "Debian"
- ansible_facts.packages is not defined or true
fail_msg: "This playbook targets Proxmox VE (Debian-based) hosts only."
tags: always
roles:
- role: proxmox-hardening
tags: proxmox
+22
View File
@@ -0,0 +1,22 @@
---
- name: Raspberry Pi setup
hosts: raspi
become: true
gather_facts: true
pre_tasks:
- name: Confirm IPA enrollment
ansible.builtin.stat:
path: /etc/ipa/default.conf
register: ipa_conf
tags: always
- name: Warn if not IPA-enrolled
ansible.builtin.debug:
msg: "WARNING: /etc/ipa/default.conf not found. IPA-dependent tasks will be skipped."
when: not ipa_conf.stat.exists
tags: always
roles:
- role: raspberrypi
tags: raspi
+13
View File
@@ -0,0 +1,13 @@
---
# Master playbook — runs every role against its target group.
# Always use --check --diff on first run against production hosts.
# Use --limit <host_pattern> to target a subset.
#
# Examples:
# ansible-playbook site.yml --check --diff # dry-run everything
# ansible-playbook site.yml --limit pve1.sweet.home # production proxmox only
# ansible-playbook site.yml --limit proxmox --tags ssh # only SSH tasks on all PVE nodes
- import_playbook: proxmox.yml
- import_playbook: freeipa.yml
- import_playbook: raspi.yml