From bcae28acac12dde211d6a75695f2148956817a00 Mon Sep 17 00:00:00 2001 From: Peter Pouliot Date: Wed, 25 Sep 2024 14:20:25 -0400 Subject: [PATCH] updating to supported oses --- examples/ubuntu2404/cloud-init.yaml.tpl | 38 ------------------------- examples/ubuntu2404/main.tf | 30 ------------------- 2 files changed, 68 deletions(-) delete mode 100644 examples/ubuntu2404/cloud-init.yaml.tpl delete mode 100644 examples/ubuntu2404/main.tf diff --git a/examples/ubuntu2404/cloud-init.yaml.tpl b/examples/ubuntu2404/cloud-init.yaml.tpl deleted file mode 100644 index 75fca7b..0000000 --- a/examples/ubuntu2404/cloud-init.yaml.tpl +++ /dev/null @@ -1,38 +0,0 @@ -#cloud-config - -apt: - sources: - docker.list: - source: deb [arch=arm64] https://download.docker.com/linux/ubuntu $RELEASE stable - keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 - -package_update: true -package_upgrade: true - -packages: - - screen - - rsync - - git - - curl - - docker-ce - - docker-ce-cli - - python3-pip - - python3-dev - - python3-selinux - - python3-setuptools - - python3-venv - - libffi-dev - - gcc - - libssl-dev - -groups: - - docker -system_info: - default_user: - groups: [docker] - -runcmd: - - docker run -d --name registry --restart=always -p 4000:5000 -v registry:/var/lib/registry registry:2 - - pip3 install -U pip - - pip3 install -U wheel - - echo 'OCI Ampere A1 Ubuntu 24.04 Example' >> /etc/motd diff --git a/examples/ubuntu2404/main.tf b/examples/ubuntu2404/main.tf deleted file mode 100644 index 7eb0621..0000000 --- a/examples/ubuntu2404/main.tf +++ /dev/null @@ -1,30 +0,0 @@ -# Example of Ampere A1 running Ubuntu 24.04 on OCI using this module -variable "tenancy_ocid" {} -variable "user_ocid" {} -variable "fingerprint" {} -variable "private_key_path" {} -locals { - cloud_init_template_path = "${path.cwd}/cloud-init.yaml.tpl" -} -module "oci-ampere-a1" { - source = "github.com/amperecomputing/terraform-oci-ampere-a1" - tenancy_ocid = var.tenancy_ocid - user_ocid = var.user_ocid - fingerprint = var.fingerprint - private_key_path = var.private_key_path -# Optional -# oci_vcn_cidr_block = "10.2.0.0/16" -# oci_vcn_cidr_subnet = "10.2.1.0/24" - oci_os_image = "ubuntu2404" - instance_prefix = "ampere-a1-ubuntu-2404" - oci_vm_count = "1" - ampere_a1_vm_memory = "24" - ampere_a1_cpu_core_count = "4" - cloud_init_template_file = local.cloud_init_template_path -} -output "oci_ampere_a1_private_ips" { - value = module.oci-ampere-a1.ampere_a1_private_ips -} -output "oci_ampere_a1_public_ips" { - value = module.oci-ampere-a1.ampere_a1_public_ips -}