k3s/tests/e2e/vagrantdefaults.rb

11 lines
550 B
Ruby
Raw Normal View History

def defaultOSConfigure(vm)
if vm.box.include?("generic/ubuntu")
vm.provision "Set DNS", type: "shell", inline: "systemd-resolve --set-dns=8.8.8.8 --interface=eth0"
vm.provision "Install jq", type: "shell", inline: "apt install -y jq"
elsif vm.box.include?("Leap")
vm.provision "Install jq", type: "shell", inline: "zypper install -y jq"
elsif vm.box.include?("microos")
vm.provision "Install jq", type: "shell", inline: "transactional-update pkg install -y jq"
vm.provision 'reload', run: 'once'
end
end