Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2014-04-05 08:10:34 +0000
committerSam Davis2014-04-09 18:47:20 +0000
commit98451c29e29e24055a5ee83517f1f947f1848b00 (patch)
tree1ecf928736c4b06b28be9f1ef6add7340cb8db7e
parentce182ab65a9e2bc3ef60b7348daa47c2a7492e1b (diff)
downloadorg.eclipse.mylyn-98451c29e29e24055a5ee83517f1f947f1848b00.tar.gz
org.eclipse.mylyn-98451c29e29e24055a5ee83517f1f947f1848b00.tar.xz
org.eclipse.mylyn-98451c29e29e24055a5ee83517f1f947f1848b00.zip
432070: change vagrantfiles to use Vagrant.configure("2")
Change-Id: I19e49c9716d6d0091fd0f086c853f0f412aada9e Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=432070 Signed-off-by: Frank Becker <Frank@Frank-Becker.de>
-rw-r--r--org.eclipse.mylyn.releng/vagrant/Vagrantfile23
1 files changed, 12 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.releng/vagrant/Vagrantfile b/org.eclipse.mylyn.releng/vagrant/Vagrantfile
index 2958994..1e43759 100644
--- a/org.eclipse.mylyn.releng/vagrant/Vagrantfile
+++ b/org.eclipse.mylyn.releng/vagrant/Vagrantfile
@@ -1,19 +1,20 @@
-Vagrant::Config.run do |config|
+Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
- config.vm.forward_port 80, 2080
- config.vm.forward_port 443, 2443
-
- Vagrant::Config.run do |config|
- config.vm.customize ["modifyvm", :id, "--memory", 2048]
+ config.vm.network "forwarded_port", guest: 80, host: 2080
+ config.vm.network "forwarded_port", guest: 443, host: 2443
+
+ config.vm.provider "virtualbox" do |v|
+ v.name = "Mylyn_local_testserver"
+ v.customize ["modifyvm", :id, "--memory", 2048]
end
- config.vm.share_folder "bugzilla", "/tmp/vagrant-bugzilla", "../../../org.eclipse.mylyn.tasks/org.eclipse.mylyn.bugzilla.releng"
- config.vm.share_folder "hudson", "/tmp/vagrant-hudson", "../../../org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson.releng"
- config.vm.share_folder "gerrit", "/tmp/vagrant-gerrit", "../../../org.eclipse.mylyn.reviews/org.eclipse.mylyn.gerrit.releng"
- config.vm.share_folder "trac", "/tmp/vagrant-trac", "../../../org.eclipse.mylyn.tasks/org.eclipse.mylyn.trac.releng"
-
+ config.vm.synced_folder "../../../org.eclipse.mylyn.tasks/org.eclipse.mylyn.bugzilla.releng", "/tmp/vagrant-bugzilla"
+ config.vm.synced_folder "../../../org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson.releng", "/tmp/vagrant-hudson"
+ config.vm.synced_folder "../../../org.eclipse.mylyn.reviews/org.eclipse.mylyn.gerrit.releng", "/tmp/vagrant-gerrit"
+ config.vm.synced_folder "../../../org.eclipse.mylyn.tasks/org.eclipse.mylyn.trac.releng", "/tmp/vagrant-trac"
+
config.vm.provision :shell, :inline => "cd /tmp/vagrant-bugzilla && sudo /opt/vagrant_ruby/bin/puppet apply --modulepath /tmp/vagrant-bugzilla/modules manifests/default.pp"
config.vm.provision :shell, :inline => "cd /tmp/vagrant-hudson && sudo /opt/vagrant_ruby/bin/puppet apply --modulepath /tmp/vagrant-hudson/modules manifests/default.pp"
config.vm.provision :shell, :inline => "cd /tmp/vagrant-gerrit && sudo /opt/vagrant_ruby/bin/puppet apply --modulepath /tmp/vagrant-gerrit/modules manifests/default.pp"

Back to the top