- config/resources/ai-workspace-hosts.yaml: resource declaration (moved from env) - templates/: shared provider.tf, variables.tf, cloud-init.yaml + hosts.tf.j2, inventory.ini.j2 (render copies the .tf/config into the env workdir) - scripts/generate.py + provision.sh: shared composition logic, parameterized by --resources/--workdir (no longer duplicated per env) - envs/ai-workspace/: degraded to a terraform workdir (only README/.gitignore tracked; rendered artifacts + tfstate gitignored) - AGENTS.md + terraform-yaml-render-pattern skill updated to the layered layout Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7 lines
200 B
YAML
7 lines
200 B
YAML
#cloud-config
|
|
package_update: true
|
|
package_upgrade: true
|
|
runcmd:
|
|
- echo "Provisioned by Terraform ai-workspace env" > /etc/motd
|
|
- systemctl enable --now ssh || systemctl enable --now sshd || true
|