Make sure apt indexes are up-to-date in recovery environment
This commit is contained in:
parent
f59225bf9c
commit
b12bc56b09
@ -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)
|
||||||
|
@ -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",
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user