Disable swap in vagrant vms

This commit is contained in:
mkrasilnikov
2017-10-27 19:57:12 +03:00
parent ba0a03a8ba
commit 2c7c956be9
2 changed files with 9 additions and 0 deletions

3
Vagrantfile vendored
View File

@@ -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