From 37ce552a0f1f02ebb77e034f0e121fc0093428ba Mon Sep 17 00:00:00 2001 From: Tony Du Date: Thu, 13 Feb 2025 14:36:26 -0800 Subject: [PATCH] feat: Prepare outpost --- tf/cloud-init.tf | 43 +-------------- tf/dns-server.tf | 4 +- tf/docker-swarm.tf | 4 +- tf/huts.tf | 34 ++++++------ tf/k8s.tf | 8 +-- tf/modules/outpost/main.tf | 92 +++++++++++++++++++++++++++++++++ tf/modules/outpost/providers.tf | 12 +++++ tf/modules/outpost/variables.tf | 7 +++ tf/outpost.tf | 6 +++ tf/providers.tf | 8 +++ tf/variables.tf | 11 ++-- tf/vars.auto.tfvars | 1 + 12 files changed, 161 insertions(+), 69 deletions(-) create mode 100644 tf/modules/outpost/main.tf create mode 100644 tf/modules/outpost/providers.tf create mode 100644 tf/modules/outpost/variables.tf create mode 100644 tf/outpost.tf diff --git a/tf/cloud-init.tf b/tf/cloud-init.tf index 1080ff2..e561569 100644 --- a/tf/cloud-init.tf +++ b/tf/cloud-init.tf @@ -1,44 +1,3 @@ -data "local_file" "ssh_pub_key" { - filename = "${path.module}/data/id_rsa.pub" -} - -locals { - common_cloud_init = <