2022-02-10 17:27:00 +00:00
|
|
|
def defaultOSConfigure(vm)
|
2022-04-14 22:00:48 +00:00
|
|
|
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"
|
2022-02-10 17:27:00 +00:00
|
|
|
vm.provision 'reload', run: 'once'
|
|
|
|
end
|
|
|
|
end
|