-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
41 lines (40 loc) · 1.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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "https://atlas.hashicorp.com/opensuse/boxes/openSUSE-42.1-x86_64/versions/1.0.1/providers/virtualbox.box"
config.vm.provider "virtualbox" do |vb|
vb.name = "Android dev-env using Qt"
vb.gui = true
vb.linked_clone = true
vb.memory = "1536"
vb.customize [
"modifyvm", :id,
"--vram", "128",
"--ioapic", "on",
"--usb", "on",
"--usbehci", "on",
"--accelerate3d", "on",
"--accelerate2dvideo", "off"
]
# Windows / macOS の場合、サウンドを有効にする
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
vb.customize [
"modifyvm", :id,
"--audio", "dsound",
"--audiocontroller", "ac97"
]
elsif (/darwin/ =~ RUBY_PLATFORM) != nil
vb.customize [
"modifyvm", :id,
"--audio", "coreaudio",
"--audiocontroller", "ac97"
]
end
end
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yml"
ansible.limit = 'all'
ansible.verbose = false
ansible.install = true
end
end