-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
59 lines (54 loc) · 1.95 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
# vagrant init ubuntu/xenial64
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network :private_network, ip: "10.10.10.10"
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--name", "order-fulfillment"]
end
config.vm.provision "shell" do |s|
s.inline = "sudo apt-get update && sudo apt-get install -y python"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/provision.yml"
ansible.extra_vars = {
hostname: "dev",
dbuser: "root",
dbpasswd: "password",
databases: ["development"],
sites: [
{
hostname: "app.local",
document_root: "/vagrant/public"
}
],
php_configs: [
{ option: "upload_max_filesize", value: "100M" },
{ option: "post_max_size", value: "100M" }
],
install_postgresql: "no",
postgresql_version: "9.5",
postgresql_user: "root",
postgresql_passwd: "password",
postgresql_databases: ["development"],
install_gems: [],
install_db: "yes",
install_ohmyzsh: "yes",
install_web: "yes",
install_mailcatcher: "no",
install_hhvm: "no",
install_beanstalkd: "yes",
install_redis: "no",
install_javascript_build_system: "yes",
install_r: "no",
r_packages: [],
enable_swap: "yes",
swap_size_in_mb: "1024",
install_eventstore: "no",
eventstore_version: "4.0.1",
eventstore_bind_ip: "10.10.10.10",
eventstore_http_prefix: "http://app.local:2113/"
}
end
end