-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
25 lines (25 loc) · 895 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
Vagrant.configure("2") do |config|
config.vm.box = "ky1ebai/ceph-xenial"
config.vm.define "ceph-aio" do |subconfig|
subconfig.vm.hostname = "ceph-aio"
subconfig.vm.network "private_network", ip: "172.16.35.100", auto_config: true
subconfig.vm.provider "virtualbox" do |vm|
vm.name = "ceph-aio"
vm.memory = 4096
vm.cpus = 2
end
(1..3).each do |disk_id|
subconfig.vm.provider "virtualbox" do |vm|
vm.customize ["createhd", "--filename", "./tmp/disk#{disk_id}", "--size", "20480"]
vm.customize [
"storageattach", :id,
"--storagectl", "SATA Controller",
"--port", "#{disk_id}",
"--type", "hdd",
"--medium", "./tmp/disk#{disk_id}.vdi"]
end
end
end
config.vm.provision "file", source: "./examples", destination: "~/"
config.vm.provision :shell, path: "./initial.sh"
end