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>
19 lines
679 B
Django/Jinja
19 lines
679 B
Django/Jinja
#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 }}
|