From c447e3125146e7e2cd01949a4eaaff91c9720ccf Mon Sep 17 00:00:00 2001 From: Excellencedev Date: Tue, 16 Dec 2025 19:46:35 +0100 Subject: [PATCH 1/2] Add Oracle OCI-VM template --- .icons/oracle.svg | 1 + .../Excellencedev/templates/oci-vm/README.md | 58 ++++ .../oci-vm/cloud-init/cloud-config.yaml.tftpl | 56 +++ .../Excellencedev/templates/oci-vm/main.tf | 324 ++++++++++++++++++ 4 files changed, 439 insertions(+) create mode 100644 .icons/oracle.svg create mode 100644 registry/Excellencedev/templates/oci-vm/README.md create mode 100644 registry/Excellencedev/templates/oci-vm/cloud-init/cloud-config.yaml.tftpl create mode 100644 registry/Excellencedev/templates/oci-vm/main.tf diff --git a/.icons/oracle.svg b/.icons/oracle.svg new file mode 100644 index 000000000..0981dfcff --- /dev/null +++ b/.icons/oracle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/registry/Excellencedev/templates/oci-vm/README.md b/registry/Excellencedev/templates/oci-vm/README.md new file mode 100644 index 000000000..b7bbf2f8d --- /dev/null +++ b/registry/Excellencedev/templates/oci-vm/README.md @@ -0,0 +1,58 @@ +--- +display_name: Oracle Cloud VM (Linux) +description: Provision Oracle Cloud Infrastructure (OCI) instances as Coder workspaces +icon: ../../../../.icons/oracle.svg +verified: false +tags: [vm, linux, oracle, oci] +--- + +# Remote Development on Oracle Cloud Infrastructure (OCI) + +Provision OCI virtual machines as [Coder workspaces](https://coder.com/docs/workspaces) using this Terraform template. + +## Prerequisites + +To deploy Coder workspaces on Oracle Cloud, you’ll need the following: + +### OCI Resources + +Before deploying, ensure your Oracle Cloud tenancy has: + +- A **VCN (Virtual Cloud Network)** already created +- At least one **subnet** within that VCN (can be public or private) +- An **Internet Gateway** attached to the VCN +- A **Route Table** that routes `0.0.0.0/0` traffic to the Internet Gateway + +> [!NOTE] +> This template **does not create networking resources** (VCN, subnet, gateway, etc.). +> You must reference an existing subnet using its **OCID** via the `subnet_id` variable. + +### OCI Authentication + +You’ll also need the following credentials: + +- **Tenancy OCID** +- **User OCID** +- **Fingerprint** +- **Private Key** +- **Compartment OCID**(Optional) default to Tenancy OCID if not defined +- **Subnet OCID** + +[OCI Documentation](https://docs.oracle.com/en-us/iaas/Content/dev/terraform/configuring.htm#api-key-auth) + +--- + +## Example `.tfvars` File + +```hcl +tenancy_ocid = "ocid1.tenancy.oc1..xxxx" +user_ocid = "ocid1.user.oc1..xxxx" +fingerprint = "aa:bb:cc:dd:ee:ff" +subnet_id = "ocid1.subnet.oc1.eu-marseille-1.aaaaaaaaxxx" +region = "eu-marseille-1" +private_key = < Date: Tue, 16 Dec 2025 19:57:05 +0100 Subject: [PATCH 2/2] chore: fix formatting --- registry/Excellencedev/templates/oci-vm/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/Excellencedev/templates/oci-vm/README.md b/registry/Excellencedev/templates/oci-vm/README.md index b7bbf2f8d..057763f0c 100644 --- a/registry/Excellencedev/templates/oci-vm/README.md +++ b/registry/Excellencedev/templates/oci-vm/README.md @@ -55,4 +55,4 @@ private_key = <