From a6f7f927ca0cfdbd09c8444d60f3e22564531c6d Mon Sep 17 00:00:00 2001 From: Dlizzz Date: Fri, 1 Dec 2017 16:30:45 +0100 Subject: [PATCH] Initial commit from server --- Vagrantfile | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Vagrantfile diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..ea678c0 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,80 @@ +# -*- mode: ruby -*- + +Vagrant.configure("2") do |config| + + config.vm.box = "bento/ubuntu-17.04" + + config.vm.provider :libvirt do |libvirt| + libvirt.memory = 1024 + libvirt.volume_cache = "writeback" + libvirt.graphics_type = "spice" + libvirt.video_type = "qxl" + end + + config.vm.define "admin", primary: true do |admin| + end + + config.vm.define "osd1" do |osd1| + osd1.vm.network :private_network, + :type => "dhcp", + :libvirt__dhcp_start => "172.28.128.10", + :libvirt__dhcp_stop => "172.28.128.250", + :libvirt__network_address => "172.28.128.0", + :libvirt__domain_name => "osd.private", + :libvirt__network_name => "osd-private" + osd1.vm.provider :libvirt do |libvirt| + libvirt.storage :file, + :size => "40G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + end + end + + config.vm.define "osd2" do |osd2| + osd2.vm.network :private_network, + :type => "dhcp", + :libvirt__dhcp_start => "172.28.128.10", + :libvirt__dhcp_stop => "172.28.128.250", + :libvirt__network_address => "172.28.128.0", + :libvirt__domain_name => "osd.private", + :libvirt__network_name => "osd-private" + osd2.vm.provider :libvirt do |libvirt| + libvirt.storage :file, + :size => "40G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + libvirt.storage :file, + :size => "20G", + :type => "raw", + :cache => "writeback" + end + end +end