summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-04-30 11:10:41 +0200
committervarac <varacanero@zeromail.org>2015-11-17 19:51:11 +0100
commit62edc7545669aaa39066967fbd7a301667e17777 (patch)
treed4ad195bb29dbfdfb132947d73bb3ecbd43cb265 /Vagrantfile
parent543fd8cbacf66e4ce44b6761d130e3109f308d02 (diff)
Vagrantfile now contains one box for wheezy and one for jessie (wheezy is default)
Change-Id: Ib58f7d002427a190474896445c884bb55080c143
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile37
1 files changed, 28 insertions, 9 deletions
diff --git a/Vagrantfile b/Vagrantfile
index ba5451aa..cb9392e3 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,23 +1,39 @@
# -*- 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
- # for details
+Vagrant.configure("2") 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
+ # for details
+
+ config.vm.define :"wheezy", primary: true do |config|
config.vm.box = "LEAP/wheezy"
- #config.vm.network :private_network, ip: "10.5.5.102"
+ config.vm.provider "virtualbox" do |v|
+ v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
+ v.name = "wheezy"
+ end
+
+ config.vm.provision "puppet" do |puppet|
+ puppet.manifests_path = "./vagrant"
+ puppet.module_path = "./puppet/modules"
+ puppet.manifest_file = "install-platform.pp"
+ puppet.options = "--verbose"
+ end
+ config.vm.provision "shell", path: "vagrant/configure-leap.sh"
+ config.ssh.username = "vagrant"
# forward leap_web ports
config.vm.network "forwarded_port", guest: 80, host:8080
config.vm.network "forwarded_port", guest: 443, host:4443
+ end
+
+ config.vm.define :"jessie", autostart: false do |config|
+ config.vm.box = "LEAP/jessie"
config.vm.provider "virtualbox" do |v|
- v.memory = 1024
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
- v.name = "node1"
+ v.name = "jessie"
end
config.vm.provision "puppet" do |puppet|
@@ -27,8 +43,11 @@ Vagrant.configure("2") do |vagrant_config|
puppet.options = "--verbose"
end
config.vm.provision "shell", path: "vagrant/configure-leap.sh"
-
config.ssh.username = "vagrant"
+ # forward leap_web ports
+ config.vm.network "forwarded_port", guest: 80, host:8080
+ config.vm.network "forwarded_port", guest: 443, host:4443
end
+
end