mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-15 02:00:03 -03:30
Disable swap in vagrant vms
This commit is contained in:
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@@ -129,6 +129,9 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.provision "shell", inline: "service network restart", run: "always"
|
||||
end
|
||||
|
||||
# Disable swap for each vm
|
||||
config.vm.provision "shell", inline: "swapoff -a"
|
||||
|
||||
# Only execute once the Ansible provisioner,
|
||||
# when all the machines are up and ready.
|
||||
if i == $num_instances
|
||||
|
||||
Reference in New Issue
Block a user