Proxmox/LXC Terraform infrastructure
  • HCL 57%
  • Jinja 36.8%
  • Shell 5.2%
  • Go Template 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
watya1 7da9fc1442 runner再構築に伴う復旧: SSH鍵配布とImmich CIスクリプト
- common/files/authorized_keys: 旧runner(消滅済み)の鍵を新runnerの鍵に
  差し替え。これが無いとhome-api/home-gui/homelab-botへのデプロイCIが
  動かないことが判明したため急遽対応(新runnerには元々鍵が無かった)
- immich role: immich-compose-check/update スクリプトを追加、Vaultwarden
  ではなく他のデプロイワークフローと同じくrunner自身のSSH鍵を使う方式に
  した(secrets不要、単純さを優先)
- immich role: .immichマーカーファイルをタスク化。適用時に
  /var/lib/immich/encoded-video に無かったため実サービスが一時的に
  クラッシュループした(写真本体はNAS上でノータッチ、復旧確認済み)

ワークフロー本体(dev-envリポジトリの.forgejo/workflows/*)はForgejo API
経由で直接更新済み(別リポジトリのため本コミットには含まれない)。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RD1Xk5ewo8yWdB2wp98TVR
2026-09-04 16:11:00 +09:00
102-immichi Initial infrastructure commit 2026-04-11 15:33:19 +00:00
103-forgejo Initial infrastructure commit 2026-04-11 15:33:19 +00:00
104-forgejo-runner 誤削除したForgejo Actions runnerを再構築(LXC104) 2026-09-04 15:41:06 +09:00
105-auto-runner auto-runner用LXC定義を追加 2026-04-13 02:59:13 +00:00
106-dev-env Initial infrastructure commit 2026-04-11 15:33:19 +00:00
200-home-api Initial infrastructure commit 2026-04-11 15:33:19 +00:00
ansible runner再構築に伴う復旧: SSH鍵配布とImmich CIスクリプト 2026-09-04 16:11:00 +09:00
.gitignore Initial infrastructure commit 2026-04-11 15:33:19 +00:00
.terraform.lock.hcl Initial infrastructure commit 2026-04-11 15:33:19 +00:00
_module_variables.tf.tmpl Initial infrastructure commit 2026-04-11 15:33:19 +00:00
CONTRIBUTING.md READMEと作業ルールを追加 2026-04-13 00:37:21 +00:00
main.tf 誤削除したForgejo Actions runnerを再構築(LXC104) 2026-09-04 15:41:06 +09:00
provider.tf Initial infrastructure commit 2026-04-11 15:33:19 +00:00
README.md 未使用のInfluxDBコンテナ(LXC 104)を削除 2026-09-04 14:42:28 +09:00
variables.tf Initial infrastructure commit 2026-04-11 15:33:19 +00:00

LXC Infrastructure

Proxmox VE 上の LXC コンテナを Terraform で管理するためのリポジトリです。

管理対象

  • 102-immichi: Immich 用コンテナ
  • 103-forgejo: Forgejo 用コンテナ
  • 105-auto-runner: Forgejo Actions runner / 自動化用コンテナ
  • 106-dev-env: 開発環境コンテナ
  • 200-home-api: home-api 用コンテナ
  • 254-tunnel: tunnel / edge 用コンテナ

使い方

terraform init
terraform fmt -recursive
terraform plan

適用する場合:

terraform apply

注意

  • terraform.tfstate*, *.tfvars, .terraform/ は Git 管理しません。
  • .terraform.lock.hcl は provider バージョン固定のため Git 管理します。
  • 実パスワード、token、秘密鍵は commit しません。

作業ルール

小さな修正は main に直接 commit/push して構いません。複数 AI や大きめの変更では agent/<agent-name>/<task-slug> ブランチを使います。