oci.yml: cogitator-04 on Oracle Cloud Always Free (A1.Flex 2 OCPU/6 GB, 50+50 GB)

Compartment, VCN, internet gateway, route table, egress-only security list,
subnet, instance (created once, cloud-init creates phil and joins the
tailnet; no inbound rules at all), 50 GB data volume (paravirtualized).
Asserts Always Free limits and a 100 GB storage budget; retries 'out of
host capacity'. Adds oracle.oci to requirements.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-27 19:04:55 -07:00
1 parent 4e58c3d320
commit 629abc0a96
3 files changed
+244 -1

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#cloud-config
# First boot of cogitator-04 (passed by oci.yml). Replaces bootstrap.yml for
# this host: creates phil, joins the tailnet. The instance has no inbound
# rules at all; Ansible reaches it over Tailscale afterwards.
hostname: {{ oci_instance_name }}
users:
- default
- name: phil
groups: [sudo]
shell: /bin/bash
sudo: "ALL=(ALL) NOPASSWD:ALL"
lock_passwd: true
ssh_authorized_keys:
- {{ lookup('file', lookup('env', 'HOME') + '/.ssh/id_ed25519.pub') }}
package_update: true
runcmd:
- curl -fsSL https://tailscale.com/install.sh | sh
- tailscale up --authkey={{ vault_infrastructure.tailscale_key }} --hostname={{ oci_instance_name }}