From 1f0c825b234b5cf5a8b2a081c1b1cc9b7ebedd3d Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Wed, 16 Feb 2022 00:13:02 +0100 Subject: [PATCH] switch image to standard microos --- locals.tf | 4 ++-- main.tf | 4 ++-- master.tf | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/locals.tf b/locals.tf index 4cb851a..479cb3d 100644 --- a/locals.tf +++ b/locals.tf @@ -21,8 +21,8 @@ locals { MicroOS_install_commands = [ "set -ex", "apt-get install -y aria2", - "aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-k3s-kvm-and-xen.qcow2.meta4", - "qemu-img convert -p -f qcow2 -O host_device $(ls -a | grep -ie '^opensuse.*microos.*k3s.*qcow2$') /dev/sda", + "aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-kvm-and-xen.qcow2.meta4", + "qemu-img convert -p -f qcow2 -O host_device $(ls -a | grep -ie '^opensuse.*microos.*qcow2$') /dev/sda", "sgdisk -e /dev/sda", "parted -s /dev/sda resizepart 4 99%", "parted -s /dev/sda mkpart primary ext2 99% 100%", diff --git a/main.tf b/main.tf index 230d9d5..ccf919b 100644 --- a/main.tf +++ b/main.tf @@ -153,8 +153,8 @@ resource "hcloud_placement_group" "k3s" { } } -data "hcloud_load_balancer" "traefik" { +/* data "hcloud_load_balancer" "traefik" { name = "traefik" depends_on = [hcloud_server.agents[0]] -} +} */ diff --git a/master.tf b/master.tf index 48a1d4c..6d62863 100644 --- a/master.tf +++ b/master.tf @@ -67,7 +67,7 @@ resource "hcloud_server" "first_control_plane" { destination = "/etc/rancher/k3s/config.yaml" } - # Run the first control plane + /* # Run the first control plane provisioner "remote-exec" { inline = [ # set the hostname in a persistent fashion @@ -154,7 +154,7 @@ resource "hcloud_server" "first_control_plane" { "sed -i 's/^- |[0-9]\\+$/- |/g' /tmp/post_install/kustomization.yaml", "kubectl apply -k /tmp/post_install", ] - } + } */ network { network_id = hcloud_network.k3s.id