Make sure apt indexes are up-to-date in recovery environment

This commit is contained in:
Marco Nenciarini 2022-02-17 09:44:18 +01:00
parent f59225bf9c
commit b12bc56b09
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038
4 changed files with 1 additions and 4 deletions

View File

@ -97,7 +97,6 @@ resource "hcloud_server" "agents" {
] ]
} }
network { network {
network_id = hcloud_network.k3s.id network_id = hcloud_network.k3s.id
ip = cidrhost(hcloud_network_subnet.k3s.ip_range, 513 + count.index) ip = cidrhost(hcloud_network_subnet.k3s.ip_range, 513 + count.index)

View File

@ -20,6 +20,7 @@ locals {
microOS_install_commands = [ microOS_install_commands = [
"set -ex", "set -ex",
"apt-get update",
"apt-get install -y aria2", "apt-get install -y aria2",
"aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-kvm-and-xen.qcow2.meta4", "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", "qemu-img convert -p -f qcow2 -O host_device $(ls -a | grep -ie '^opensuse.*microos.*qcow2$') /dev/sda",

View File

@ -36,5 +36,3 @@ agents_num = 2
# If you would like to specify the k3s upgrade channel from the get go, you can do so, the default is "stable". # If you would like to specify the k3s upgrade channel from the get go, you can do so, the default is "stable".
# For a list of available channels, see https://rancher.com/docs/k3s/latest/en/upgrades/basic/ and https://update.k3s.io/v1-release/channels # For a list of available channels, see https://rancher.com/docs/k3s/latest/en/upgrades/basic/ and https://update.k3s.io/v1-release/channels
# k3s_upgrade_channel = "latest" # k3s_upgrade_channel = "latest"

View File

@ -96,4 +96,3 @@ variable "automatically_upgrade_k3s" {
default = true default = true
description = "Whether to automatically upgrade k3s based on the selected channel" description = "Whether to automatically upgrade k3s based on the selected channel"
} }