-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
35 lines (26 loc) · 920 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
cinder_file_to_disk = '.vagrant/cinder-volume-extradisk.vdi'
config.vm.provider :virtualbox do |v|
v.memory = 1024
v.customize ["createhd", "--filename", cinder_file_to_disk, "--size", 4096]
v.customize ["storageattach", :id, "--storagectl", "SATAController",
"--port", 2, "--device", 0, "--type", "hdd",
"--medium", cinder_file_to_disk]
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "getreqs.yml"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "prepare-vm.yml"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "deploy.yml"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "test.yml"
end
end