Skip to content

Commit 929a69c

Browse files
committed
chore: document Flux bootstrap workflow
1 parent 6c63717 commit 929a69c

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ansible-manual.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
inputs:
66
playbook:
77
description: Playbook filename under src/ansible/playbooks/
8-
type: string
9-
default: bootstrap.yml
8+
required: true
9+
type: choice
10+
options:
11+
- bootstrap.yml
12+
- apply.yml
1013
initialize-terraform:
1114
description: Initialize Terraform first
1215
type: boolean

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ make tf-plan
2525

2626
- `src/tf/connectivity.tf` includes a provider connectivity check that reads Proxmox node inventory.
2727
- `src/tf/k3s_nodes.tf` provisions two workload VMs pinned one-per-node by default.
28-
- `src/tf/ssh_key_inventory.tf` generates an SSH key, stores its private key in SSM, and publishes hosts via the Terraform Ansible provider.
28+
- `src/tf/ssh_key_inventory.tf` generates node SSH and Flux deploy keys, stores private keys in SSM, and publishes hosts via the Terraform Ansible provider.
2929
- `src/ansible/inventory.yml` uses the Terraform inventory plugin (`cloud.terraform.terraform_provider`).
3030
- `src/ansible/group_vars/all.yml` resolves `ssm_private_key_path` from AWS SSM at runtime.
31+
- `src/ansible/playbooks/apply.yml` bootstraps Flux and GitHub notifications for `sgfdevs/infra-k8s-apps`.
3132
- VM provisioning references Debian 13 image IDs keyed by node name in `src/tf/k3s_nodes.tf`.
3233

3334
## Required Terraform Variables
@@ -48,3 +49,9 @@ make tf-plan
4849
- `OUTPUT_ENCRYPTION_KEY`
4950
- `TF_VAR_proxmox_endpoint`
5051
- `TF_VAR_proxmox_api_token`
52+
53+
## Flux Bootstrap Notes
54+
55+
- Run `bootstrap.yml` first to install K3s, then run `apply.yml` to bootstrap Flux.
56+
- After Terraform apply, add `flux_git_public_key` output to `sgfdevs/infra-k8s-apps` as a read-only deploy key.
57+
- Update SSM parameter at `flux_github_status_token_ssm_path` with a valid GitHub token so Flux notifications can post status updates.

0 commit comments

Comments
 (0)