Commit Graph
113 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 84dbed9d8c G7: helm lint per values set, render-defaults input, fail on empty render
- reusable-helm-lint: new `render-defaults` input (default true) for charts
  whose templates require values the defaults leave empty.
- Lint each values set, not only the defaults.
- Render to a named .yaml file and fail if nothing rendered; kubeconform
  passes on empty input and skips files without a .yaml extension.
- docs/ci-cd/adding-ci.md: placeholder-values convention, G7 rollout table,
  test results.

Refs DevOps/software-infrastructure#55

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:17:22 -05:00
claudeandClaude Opus 5.5 b15bb337e9 G3: syntax-check and lint this repo's playbooks in CI
.gitea/scripts/check-playbooks.sh runs ansible-playbook --syntax-check on
every top-level playbook and ansible-lint (production profile, with
yamllint's rules) on the repo's own files, in a temporary copy with empty
secrets stubs, so it never touches a real secrets file. Roles are excluded;
they're linted in their own repos.

Baselines so the check passes today and fails on new problems:
- .gitea/playbooks-skip.txt: nine playbooks that fail the syntax check now
  (missing roles, an unknown module, an unfinished playbook), with reasons.
- .ansible-lint-ignore: 110 existing file/rule findings.

The workflow (.gitea/workflows/playbooks.yaml) is manual-only until S8 passes
and the ci-tools image is published; its header has the push/pull_request
trigger. Docs: docs/ci-cd/playbook-checks.md.

Refs DevOps/software-infrastructure#51

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:25:00 -05:00
claudeandClaude Opus 5.5 1dab77645e G2: reusable lint workflows for Ansible roles, Helm charts and Dockerfiles
Three workflow_call workflows that run in the shared CI tools image (G1):
- reusable-ansible-role-lint: ansible-lint (which includes yamllint's
  rules) on a copy of the role named as the playbooks use it, with the
  repo name also resolvable for galaxy's skeleton tests/test.yml.
  role-name is a warning; .ansible-lint-ignore baselines are honoured.
- reusable-helm-lint: helm lint, then helm template | kubeconform for
  Kubernetes 1.31.2, with optional extra values files.
- reusable-dockerfile-lint: hadolint on every Dockerfile, threshold
  warning by default.

docs/ci-cd/adding-ci.md has caller templates, inputs, the baseline
command, and what was and wasn't tested.

Tested locally by running each workflow's steps verbatim in a local build
of the tools image: ansible-role-gitea fails as-is (48 findings), passes
with a baseline and fails on a new bad task; helm-jamulus passes, a
missing-value template and an invalid Service fail; the tools Dockerfile
passes and an unpinned one fails. Not yet run on the runner, and
cross-repo uses: is untested. No callers added, so no runs start.

Refs DevOps/software-infrastructure#50

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:49:25 -05:00
claudeandClaude Opus 5.5 ef693ffd97 G9: reusable gitleaks secret scan, config and docs
Add a reusable workflow that downloads a pinned, checksum-verified gitleaks
and scans the pushed commits, the PR's commits, or the current tree. Logs
show only a count, never the rule, file, line or value, because the logs
are public. This repo's caller is manual-only until S8 passes.

.gitleaks.toml extends the default rules and allowlists Helm checksum/*
annotations. docs/ci-cd/secret-scanning.md covers usage, what to do when it
fails, and the policy for history scans (done privately, not in CI).

Tested locally by running the step verbatim in a container against
throwaway repos: a planted fake token fails on push, new-branch push and PR;
clean ranges, checksum annotations and this repo's tree pass; a bad
checksum fails; the value never appears in the output. actionlint and
yamllint pass.

Refs DevOps/software-infrastructure#57

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:44:40 -05:00
claudeandClaude Opus 5.5 1b197efc64 G1: shared CI tools image (prepared, not yet built in CI)
Add images/ci-tools: one image with ansible 14.6.0 (core 2.21.6),
ansible-lint, yamllint, helm 3.22.1, kubeconform, actionlint, hadolint,
gitleaks and node 24 for JavaScript actions. Python tools are pinned in
requirements.txt; binaries are pinned by version and the SHA-256 from
each release's checksum file. VERSION starts at 1.0.0.

Add a manual-only ci-tools-image workflow that builds and smoke-tests
the image, and publishes an immutable version tag only when Eric enables
CI_TOOLS_PUBLISH and adds a registry token (after S8 and P1). A sample
job then uses the published image as its container.

Tested on the workstation: image builds, every tool reports its pinned
version, hadolint/actionlint pass on the new files, and syntax-check
passes for gitea.yaml, ci-runner.yaml and prometheus.yaml inside it.

Refs DevOps/software-infrastructure#49

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:16:28 -05:00
claudeandClaude Opus 5.5 9b39c4aaad I5: names-only credentials doc; bump gitea role for separate passwords
- docs/ci-cd/credentials.md: no Actions secrets exist yet, rules for
  adding them, which role variable serves which purpose, and how to
  give each its own value safely.
- Bump the gitea role: gitea_mailer_password and
  gitea_postgresql_password, defaulting to the current value.

Refs #47

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:18:52 -05:00
claudeandClaude Opus 5.5 aebcd1eebd Bump gitea role: pinned checkout in demo workflow
Refs #46

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:16:02 -05:00
claudeandClaude Opus 5.5 d359af3fff I4: inventory of third-party actions; pin the ones in this repo
- docs/ci-cd/actions-inventory.md lists every `uses:` in the DevOps,
  Gaming and claude repos, which of those workflows run on this Gitea,
  and what needs a mirror (only actions/checkout today).
- deployLibvirt.yaml: pin actions/checkout (v4.4.0) and
  dawidd6/action-ansible-playbook (v2.8.0) to commit SHAs.
- Bump the gitea role for the same pin in its demo workflow.

Refs #46

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:15:53 -05:00
claudeandClaude Opus 5.5 d1af81f746 docs: S8 soak-test workflow and procedure
Adds docs/ci-cd/soak/soak.yaml (20 soak jobs plus a control failure, for a
cicd-test repo) and docs/ci-cd/soak-test.md with preconditions, pass
criteria and the first evidence lining up silent job failures with runner
evictions. The runbook now says to cancel orphaned in-progress jobs before
rerunning.

Refs DevOps/software-infrastructure#41

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:10:58 -05:00
claudeandClaude Opus 5.5 c7874a4648 Bump gitea role: host runner token fetched as root
Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:57:23 -05:00
claudeandClaude Opus 5.5 5c72efc6c5 docs: full apply command for the proposed host runner
Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:57:12 -05:00
claudeandClaude Opus 5.5 4d6e43e9f7 Proposed runner on a dedicated host: playbook, role bump, runbook
ci-runner.yaml deploys the Gitea Actions runner on inspiron-3670 with
the gitea role's new actions_host.yaml (private Docker daemon for jobs,
same capacity, timeouts, job images and cleanup as the cluster runner).
Not applied; waiting on a decision in the issue.

Refs #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:56:55 -05:00
claudeandClaude Opus 5.5 156cbeea60 docs: runner operations runbook (draft)
Add docs/ci-cd/runner.md: architecture of the shared Gitea Actions runner,
how to apply role changes, where to read logs, recovery steps for a stuck
queue, an evicted runner or a full Docker disk, and how to replace the
registration token without handling its value.

Describes the configuration committed for S3-S5; it becomes accurate for the
live runner once those are deployed. The S7 alerts already link here.

Refs DevOps/software-infrastructure#42

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:59:26 -05:00
claudeandClaude Opus 5.5 160c82b5c9 Bump gitea role: scheduled Docker cleanup for the runner
Refs #38

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:24:57 -05:00
claudeandClaude Opus 5.5 65592ae07d www: enable Google and GitHub sign-up on the membership page
Bumps ericomeehan.www to d1084c7 and sets the public client IDs. The
client secrets come from www_membership_secret_data in the vault.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:44:43 -05:00
claudeandClaude Opus 5.5 9084ee05a6 Remove committed command output and ignore similar files
data.log was a saved `kubectl get pods` listing with no purpose in the
repo. Ignore logs, Ansible retry files, merge leftovers, editor swap files
and Python caches so they don't get committed again. The rest of the root
is playbooks, inventories and config, all intentional.

Closes #60

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:03:35 -05:00
claudeandClaude Opus 5.5 162fbd1512 Bump prometheus role: kube-state-metrics and CI runner alerts
Refs #40

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:02:24 -05:00
ericandClaude Opus 5.5 4c4a437cee Bump ericomeehan.www: same services for every tier; Matrix/PeerTube released
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:10:30 -05:00
ericandClaude Opus 5.5 bf4a048f2d Funkwhale and Harmony send as their own LDAP accounts; Harmony Users gate
funkwhale.yaml and harmony.yaml take the mail/LDAP password from
funkwhale_admin_password and harmony_admin_password (Vault); the roles keep
the accounts and their groups. Bumps ericomeehan.dex (harmony connector),
ericomeehan.funkwhale and ericomeehan.harmony.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:44:41 -05:00
ericandClaude Opus 5.5 d8999d0445 Harmony on eom.dev at harmony.eom.dev; Dex client for it
Adds the ericomeehan.harmony role (DevOps/ansible-role-harmony) and
harmony.yaml, and bumps ericomeehan.dex for the harmony client. Vault:
harmony_dex_client_secret (new); mail reuses listmonk_smtp_password.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:32:25 -05:00
claudeandClaude Opus 5.5 6088e68fc8 Bump funkwhale role: fix black text in Firefox ESR
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:15:34 -05:00
claudeandClaude Opus 5.5 1bad6aca7f Funkwhale: gate logins on Funkwhale Users; readable cards in both themes
Bumps the Dex role (funkwhale connector limited to the Funkwhale Users
LDAP group) and the funkwhale role (contrast fixes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:58:09 -05:00
claudeandClaude Opus 5.5 0236838b3e Bump funkwhale role: refresh the service worker's cached index.html
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:48:41 -05:00
claudeandClaude Opus 5.5 b7f71cfdea Bump funkwhale role: Dex-only login, anonymous access, theme stylesheet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:45:01 -05:00
claudeandClaude Opus 5.5 32a7344b24 Bump funkwhale role: co-locate pods, ephemeral-storage requests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:31:16 -05:00
f6d2aae6e1 Funkwhale at funkwhale.eom.dev with Dex login
Adds the ericomeehan.funkwhale role and its play, and bumps the Dex role
for the new funkwhale client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:23:31 -05:00
claudeandClaude Opus 5.5 91b81e5d9b Bump gitea role: runner resources and timeouts, Actions timeouts
Pulls in DevOps/ansible-role-gitea@5fb2d9c: CPU and memory for the
runner and DinD, capacity 1, runner job and shutdown timeouts, pinned
job images, and Gitea's Actions zombie, endless and abandoned job
timeouts with log and artifact retention.

Refs #37
Refs #39

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:01:58 -05:00
claudeandClaude Opus 5.5 dc406a1fef Bump gitea role: runner placement and DinD storage
Refs #36

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:03:29 -05:00
claudeandClaude Opus 5.5 464a623f28 Bump gitea role: pinned chart, runner deployable alone
The runner can now be applied with
`ansible-playbook gitea.yaml --tags actions` without touching the main
Gitea release, and the Gitea chart is pinned to 12.7.0.

Refs #35

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:01:07 -05:00
claudeandClaude Opus 5.5 92dae68e76 LocalAI: stop backends stuck busy for 10 minutes
Agent-pool work kept the Tesla T4 at 94 C after the agents were
paused, and killing the backend only made it reload. Enable the busy
watchdog so no single request can hold the GPU indefinitely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:43:30 -05:00
claudeandClaude Opus 5.5 edf34b2c0e Bump eom role: Discourse launcher image and PostgreSQL 18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 15:34:06 -05:00
claudeandClaude Opus 5.5 41faafd072 LocalAI: unload idle models after 15 minutes
A resident model holds the passively cooled Tesla T4 in P0 at about
30 W, which keeps the poweredge-t640 fans near 4,800 RPM. Unloading
idle models lets the card return to P8 at about 15 W.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 14:28:19 -05:00
claudeandClaude Opus 5.5 39f22f176a Bump monero role: stats sidecar runs as P2Pool's uid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:59:24 -05:00
claudeandClaude Opus 5.5 343f0a2872 Bump monero role: publish sanitized P2Pool stats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:52:28 -05:00
claudeandClaude Opus 5.5 d700062431 Bump tor-controller role: replace unavailable kube-rbac-proxy image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:20:58 -05:00
claudeandClaude Opus 5.5 b4ecc5ed5c Prometheus: Matrix alerting, site probes, GPU metrics, forum digest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:20:50 -05:00
claudeandClaude Opus 5.5 52fdfed56c Discourse: stop installing discourse-subscriptions
The www membership app is the only checkout now. The plugin sold the same
Stripe prices with subscriber_level_0..4 groups that are off by one from the
site's Level 1-5 and bypassed the LDAP tiers. It is already disabled live
(discourse_subscriptions_enabled=false; it had 0 customers).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 15:59:44 -05:00
claudeandClaude Opus 5.5 17da1bc94f Bump eom role: relay outbound mail through Amazon SES
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 15:36:25 -05:00
claudeandClaude Opus 5.5 d87d448eaa Bump ericomeehan.gitea: drop unused public MCP deployment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 14:12:46 -05:00
claudeandClaude Opus 5.5 351b186b6d Bump eom role: mail domain filter fix, pin docker-mailserver 15.1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:59:53 -05:00
claudeandClaude Opus 5.5 5f90fa9681 www: redirect eom.dev apex to www.eom.dev
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:04:19 -05:00
claudeandClaude Opus 5.5 69e97ed7c8 LocalAI: persistent state, T4-only p2p settings
Bump the localai role to the commit that keeps agent, KB, config and backend
state on the models PVC and patches hostNetwork and the p2p token secret.
Set the playbook to p2p/federated off to match the live deployment: Eric
chose T4-only after p2p workers broke model loads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:46:26 -05:00
claudeandClaude Opus 5.5 16c916894b Add mcp-servers playbook and role submodule
Cluster-internal, read-only MCP servers (Gitea, Grafana, Nextcloud,
Discourse) for the LocalAI agent pool, acting as LDAP user localai.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:39:00 -05:00
claudeandClaude Opus 5.5 052ab06091 Offer XMR at membership checkout; bump monero role
Shkeeper now lists XMR (monerod accepts its plain-HTTP RPC), so members can
pay in Monero. The monero role bump fixes P2Pool's --rpc-login argument.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:54:02 -05:00
claudeandClaude Opus 5.5 644d5e32fc Add Monero playbook; Shkeeper reaches monerod in-cluster
monero.yaml deploys the new ericomeehan.monero role (monerod + P2Pool on
nano, RPC login in a Secret). The Shkeeper bump points its Monero module at
the in-cluster monerod so XMR stops showing as Offline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:47:02 -05:00
claudeandClaude Opus 5.5 057e44a5fa www: enable Stripe live mode and set billing portal configuration
STRIPE_LIVE_MODE was 0 with a live key, so live webhooks and subscriptions
were rejected; the portal setting held a publishable key instead of a bpc_ ID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:21:11 -05:00
claudeandClaude Opus 5.5 68a2e25add Update ericomeehan.listmonk: fix e-mail template mount
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:52:24 -05:00
claudeandClaude Opus 5.5 6a039e5266 Update ericomeehan.listmonk: eom.dev e-mail design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:36:41 -05:00
claudeandClaude Opus 5.5 b5218e7c7b Update ericomeehan.listmonk: Dex-only admin login
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:05:53 -05:00
claudeandClaude Opus 5.5 73db74edc0 Update ericomeehan.listmonk: newsletter automation API user
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 20:32:05 -05:00