forked from shopware5/shopware-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (29 loc) · 1.28 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8.0"
Vagrant.configure("2") do |config|
config.ssh.forward_agent = true
config.vm.box = "bento/ubuntu-16.04"
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.network "forwarded_port", guest: 8000, host: 8094
config.vm.network "forwarded_port", guest: 35729, host: 35729
config.vm.hostname = "shopware.local"
#config.vm.synced_folder "../src", "/home/vagrant/www/shopware", create: true, type: "smb"
#config.vm.synced_folder "../src", "/home/vagrant/www/shopware", create: true, type: "nfs"
#config.vm.synced_folder "../src", "/home/vagrant/www/shopware", create: true;
config.vm.provider :virtualbox do |vb|
vb.name = "vagrant_shopware";
vb.customize ["modifyvm", :id, "--cpus", 4]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--memory", 2048]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
# Run Ansible from the Vagrant VM
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "ansible/playbook.yml"
ansible.extra_vars = {
"shopware_app_host" => "192.168.33.10",
"mysql_root_password" => "shopware"
}
end
end