Skip to content
Snippets Groups Projects
Commit 103d0d25 authored by Pascal Wiedenbeck's avatar Pascal Wiedenbeck
Browse files

Permanently disable swap on VM

parent b1f01a34
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,12 @@ Vagrant.configure('2') do |config|
group: "vagrant",
mount_options: ["dmode=777,fmode=777"]
# Disable swap for kubernetes reasons
config.vm.provision "shell", inline: "swapoff -a"
# Disable swap permanently for kubernetes reasons
$script = <<-'SCRIPT'
swapoff -a
sed -i.bak '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
SCRIPT
config.vm.provision "shell", inline: $script
host_vars["default"] = {
"ip": ip,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment