Remove old architecture diagram
[pixelated-user-agent.git] / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 VAGRANTFILE_API_VERSION = "2"
5
6 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7   config.vm.box = "LEAP/jessie"
8
9   config.vm.define "source", primary: true do |source|
10     source.vm.provision "puppet" do |puppet|
11       puppet.manifests_path = "provisioning/manifests"
12       puppet.module_path    = "provisioning/modules"
13       puppet.manifest_file  = "source.pp"
14     end
15   end
16
17   config.vm.define "deb", autostart: false do |deb|
18     deb.vm.provision "puppet" do |puppet|
19       puppet.manifests_path = "provisioning/manifests"
20       puppet.module_path    = "provisioning/modules"
21       puppet.manifest_file  = "deb.pp"
22     end
23   end
24
25   if /mswin|mingw/ =~ RUBY_PLATFORM
26     config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"
27   end
28
29   config.vm.provider "libvirt" do |v, override|
30     v.memory = 2048
31     override.vm.network :forwarded_port, guest: 3333, guest_ip: '127.0.0.1', host: 3333
32   end
33
34   config.vm.provider "virtualbox" do |v, override|
35     v.memory = 2048
36     override.vm.network :forwarded_port, guest: 3333, host: 3333 # do NOT add host_ip in this line. It is not necessary
37     override.vm.network :forwarded_port, guest: 8089, host: 8089
38   end
39 end