my-homelab-configs/bootstrap/email
juvenal.diaz 80ce6dd9a2 fix: constrain OCI foundation to free tier micro VMs 2026-10-23 18:27:15 -06:00
..
README.md fix: constrain OCI foundation to free tier micro VMs 2026-10-23 18:27:15 -06:00
main.tf feat: add opt-in OCI email VM pipeline 2026-10-23 10:00:22 -06:00
outputs.tf feat: add opt-in OCI email VM pipeline 2026-10-23 10:00:22 -06:00
variables.tf fix: constrain OCI foundation to free tier micro VMs 2026-10-23 18:27:15 -06:00
versions.tf feat: add opt-in OCI email VM pipeline 2026-10-23 10:00:22 -06:00

README.md

OCI email learning VM

This is an independent, opt-in OpenTofu stack. It creates one OCI compute VM inside an existing compartment and subnet; it does not install a mail server, change DNS, or open SMTP ports. Keep enabled=false until the OCI image, network, and SSH inputs are known.

The default VM.Standard.E2.1.Micro shape and Canonical Ubuntu 24.04 Minimal image are intended for OCI Always Free capacity in us-ashburn-1.

Example on the Debian pipeline host:

export LAB_EMAIL_VM_ENABLED=true
export LAB_EMAIL_OCI_REGION=us-phoenix-1
export LAB_EMAIL_COMPARTMENT_ID=ocid1.compartment...
export LAB_EMAIL_AVAILABILITY_DOMAIN='...'
export LAB_EMAIL_SUBNET_ID=ocid1.subnet...
export LAB_EMAIL_IMAGE_ID=ocid1.image...
export LAB_EMAIL_SSH_PUBLIC_KEY="$(cat ~/.ssh/id_ed25519.pub)"
export LAB_EMAIL_DOMAIN=example.org
# Optional existing NSGs, as a JSON list. Do not open mail ingress yet.
export LAB_EMAIL_NSG_IDS='["ocid1.networksecuritygroup..."]'
./jeannie email-vm plan
./jeannie email-vm apply

The provider reads OCI credentials from the normal OCI CLI configuration (~/.oci/config) and never stores private keys in this repository. destroy requires --yes. The stack is intentionally separate from platform, apps, and up, so mail experiments cannot modify the Kubernetes cluster.