summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-12-04 11:47:36 +0100
committervarac <varacanero@zeromail.org>2015-12-04 11:47:36 +0100
commitb81fe0a8aaa281b4ddf709cd02af47b23144a32c (patch)
tree4f23367e785fe1f1c52f9f2c308f59c9bde73bbb
parentc98fb4e2538d51d41c88f2592ece30959069637f (diff)
[bug] Vagrant boxes need 1g of ram
On ci builds we got out-of-memory errors using the default of 512mb.
-rw-r--r--lib/leap_cli/commands/vagrant.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index f7e00891..5168a3c0 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -150,7 +150,11 @@ module LeapCli; module Commands
lines << %[ config.vm.network :private_network, ip: "#{node.ip_address}"]
lines << %[ config.vm.provider "virtualbox" do |v|]
lines << %[ v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]]
- lines << %[ v.name = "#{node.name}"]
+ lines << %[ v.name = "#{node.name}"]
+ lines << %[ v.memory = 1024]
+ lines << %[ end]
+ lines << %[ config.vm.provider "libvirt" do |v|]
+ lines << %[ v.memory = 1024]
lines << %[ end]
lines << %[ #{leapfile.custom_vagrant_vm_line}] if leapfile.custom_vagrant_vm_line
lines << %[ end]