-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added switch case for CNIs * Curl fixes, apply manifests correctly Signed-off-by: Derek Nola <[email protected]>
- Loading branch information
Showing
4 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
def defaultOSConfigure(vm) | ||
|
||
if vm.box.include?("ubuntu2004") | ||
vm.provision "shell", inline: "systemd-resolve --set-dns=8.8.8.8 --interface=eth0", run: 'once' | ||
vm.provision "shell", inline: "apt install -y jq", run: 'once' | ||
vm.provision "netplan dns", type: "shell", inline: "netplan set ethernets.eth0.nameservers.addresses=[8.8.8.8,1.1.1.1]; netplan apply", run: 'once' | ||
vm.provision "Install jq", type: "shell", inline: "apt install -y jq", run: 'once' | ||
end | ||
if vm.box.include?("Leap") | ||
vm.provision "shell", inline: "zypper install -y jq", run: 'once' | ||
vm.provision "Install jq", type: "shell", inline: "zypper install -y jq", run: 'once' | ||
end | ||
|
||
end |