my-homelab-configs/bootstrap/email/README.md

32 lines
1.3 KiB
Markdown

# 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:
```sh
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.