From 2adbf36f656b68ef09f1d6dafdc9f1b8f99d8080 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sun, 12 Jul 2015 12:14:11 -0400 Subject: Add emacs/vim modelines to Vagrantfile Makes most editors recognize Vagrantfile as a ruby file and do appropriate syntax highlighting --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Vagrantfile') diff --git a/Vagrantfile b/Vagrantfile index 18590a8f..2d9b473e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,3 +1,5 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.define :node1 do |config| -- cgit v1.2.3 From f1263dc48510c92366a1203beec84e9fd27e1c46 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sun, 12 Jul 2015 23:06:38 -0400 Subject: vagrant: Increase Memory to 1GB leap_cli running puppet fails from lack of memory with the default amount of RAM --- Vagrantfile | 1 + 1 file changed, 1 insertion(+) (limited to 'Vagrantfile') diff --git a/Vagrantfile b/Vagrantfile index 18590a8f..16f973cb 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,6 +8,7 @@ Vagrant.configure("2") do |config| config.vm.box = "LEAP/wheezy" #config.vm.network :private_network, ip: "10.5.5.102" config.vm.provider "virtualbox" do |v| + v.memory = 1024 v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] v.name = "node1" end -- cgit v1.2.3 From 2bb4f3d3c350aaac569f0c6a8c7935f4c35ecfee Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sun, 12 Jul 2015 23:31:15 -0400 Subject: vagrant: Fix variable shadowing in Vagrantfile I'm unsure if the two levels of config are actually required, but making the most minimal changes possible atm. --- Vagrantfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Vagrantfile') diff --git a/Vagrantfile b/Vagrantfile index 16f973cb..fdf92020 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,5 +1,7 @@ -Vagrant.configure("2") do |config| - config.vm.define :node1 do |config| +# -*- mode: ruby -*- +# vi: set ft=ruby : +Vagrant.configure("2") do |vagrant_config| + vagrant_config.vm.define :node1 do |config| # Please verify the sha512 sum of the downloaded box before importing it into vagrant ! # see https://leap.se/en/docs/platform/details/development#Verify.vagrantbox.download -- cgit v1.2.3 From dc87df7ca0eac492fcd65638b8e72b6e02f7bb4f Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 28 Sep 2015 13:29:43 +0200 Subject: [feat] Vagrant: forward leap_web ports 443 ad 80 --- Vagrantfile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Vagrantfile') diff --git a/Vagrantfile b/Vagrantfile index c9c68284..ba5451aa 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,6 +9,11 @@ Vagrant.configure("2") do |vagrant_config| config.vm.box = "LEAP/wheezy" #config.vm.network :private_network, ip: "10.5.5.102" + + # forward leap_web ports + config.vm.network "forwarded_port", guest: 80, host:8080 + config.vm.network "forwarded_port", guest: 443, host:4443 + config.vm.provider "virtualbox" do |v| v.memory = 1024 v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] -- cgit v1.2.3