mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-17 03:00:07 -03:30
Oracle Linux 8 support and fixes (#6198)
* Add oraclelinux8 and disable firewalld Add oraclelinux8 image and disable firewalld on oraclelinux VMs * Fix Oracle Linux repositories As documented in: http://yum.oracle.com/getting-started.html#installing-software-from-oracle-linux-yum-server public-yum-ol7.repo was deprecated on release 7.6. Some repos were integrated into oracle-linux-ol7.repo (i.e.: ol7_latest, ol7_addons) and other are available as packages (epel). This also adds support for oraclelinux8 * Fix to use ansible_distribution_version Instead of ansible_distribution_major_version * Update README.md
This commit is contained in:
6
Vagrantfile
vendored
6
Vagrantfile
vendored
@@ -35,6 +35,7 @@ SUPPORTED_OS = {
|
||||
"opensuse" => {box: "bento/opensuse-leap-15.1", user: "vagrant"},
|
||||
"opensuse-tumbleweed" => {box: "opensuse/Tumbleweed.x86_64", user: "vagrant"},
|
||||
"oraclelinux" => {box: "generic/oracle7", user: "vagrant"},
|
||||
"oraclelinux8" => {box: "generic/oracle8", user: "vagrant"},
|
||||
}
|
||||
|
||||
if File.exist?(CONFIG)
|
||||
@@ -185,6 +186,11 @@ Vagrant.configure("2") do |config|
|
||||
# Disable swap for each vm
|
||||
node.vm.provision "shell", inline: "swapoff -a"
|
||||
|
||||
# Disable firewalld on oraclelinux vms
|
||||
if ["oraclelinux","oraclelinux8"].include? $os
|
||||
node.vm.provision "shell", inline: "systemctl stop firewalld; systemctl disable firewalld"
|
||||
end
|
||||
|
||||
host_vars[vm_name] = {
|
||||
"ip": ip,
|
||||
"flannel_interface": "eth1",
|
||||
|
||||
Reference in New Issue
Block a user