Created
December 19, 2016 05:20
-
-
Save gnilchee/9a4b568ba8eda0ec5e9bf9b2b023c21d to your computer and use it in GitHub Desktop.
Vagrantfile to create a drbd cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define "db1" do |db1| | |
db1.vm.box = "centos/6" | |
db1.vm.hostname = "db1" | |
end | |
config.vm.define "db2" do |db2| | |
db2.vm.box = "centos/6" | |
db2.vm.hostname = "db2" | |
end | |
config.vm.network "private_network", type: "dhcp" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "1024" | |
vb.cpus = 2 | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
yum -y update | |
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm | |
yum clean all | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment