mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
830c330aad
* Fix infinite while loop on failure, reduce upgradecluster * DRY code Signed-off-by: Derek Nola <derek.nola@suse.com>
13 lines
479 B
Ruby
13 lines
479 B
Ruby
def defaultOSConfigure(vm)
|
|
if vm.box.include?("ubuntu2004")
|
|
vm.provision "shell", inline: "systemd-resolve --set-dns=8.8.8.8 --interface=eth0"
|
|
vm.provision "shell", inline: "apt install -y jq"
|
|
end
|
|
if vm.box.include?("Leap")
|
|
vm.provision "shell", inline: "zypper install -y jq"
|
|
end
|
|
if vm.box.include?("microos")
|
|
vm.provision "shell", inline: "transactional-update pkg install -y jq"
|
|
vm.provision 'reload', run: 'once'
|
|
end
|
|
end |