forked from muka/servioticy-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
68 lines (52 loc) · 2.15 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
unless Vagrant.has_plugin?("vagrant-puppet-install")
raise 'vagrant-puppet-install is not installed!'
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "hashicorp/precise64"
config.puppet_install.puppet_version = :latest
# required by maven
config.ssh.shell = "export JAVA_HOME=/usr/lib/jvm/default-java/"
# required by couchbase-cli
config.ssh.shell = "export LC_ALL=\"en_US.UTF-8\""
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
#config.vm.provision "shell", path: "provision.sh"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
end
#config.vm.provision :shell, :inline => "sudo apt-get update && sudo apt-get install puppet -y"
#puppet config
config.vm.provision "puppet" do |puppet|
puppet.module_path = "puppet/modules"
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "init.pp"
puppet.options = "--environment dev"
end
# jetty
config.vm.network :forwarded_port, guest: 8082, host: 8080
# couchbase
config.vm.network :forwarded_port, guest: 8092, host: 8092
config.vm.network :forwarded_port, guest: 8091, host: 8091
# elastic search
config.vm.network :forwarded_port, guest: 9200, host: 9200
#apollo
#tcp://0.0.0.0:1883
config.vm.network :forwarded_port, guest: 1883, host: 1883
#tls://0.0.0.0:61614
config.vm.network :forwarded_port, guest: 61614, host: 61614
#ws://0.0.0.0:61623/
config.vm.network :forwarded_port, guest: 61623, host: 61623
#wss://0.0.0.0:61624/
config.vm.network :forwarded_port, guest: 61624, host: 61624
#http://0.0.0.0:61680/
config.vm.network :forwarded_port, guest: 61680, host: 61680
#https://0.0.0.0:61681/
config.vm.network :forwarded_port, guest: 61681, host: 61681
end