Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Created December 19, 2016 05:20
Show Gist options
  • Save gnilchee/9a4b568ba8eda0ec5e9bf9b2b023c21d to your computer and use it in GitHub Desktop.
Save gnilchee/9a4b568ba8eda0ec5e9bf9b2b023c21d to your computer and use it in GitHub Desktop.
Vagrantfile to create a drbd cluster
# -*- 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