Skip to content

Instantly share code, notes, and snippets.

@briancain
Last active August 29, 2015 14:03
Show Gist options
  • Save briancain/92ed9b37a15ae2c7034d to your computer and use it in GitHub Desktop.
Save briancain/92ed9b37a15ae2c7034d to your computer and use it in GitHub Desktop.
Multi-master Split PE install Vagrant Script (does not install PE)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
BOX = "centos-65-x64-virtualbox-nocm.box"
# Multi-node setup
# Make sure to run this:
# vagrant plugin install vagrant-hostmanager
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.vm.define "pemasterprimary", primary: true do |pemasterprimary|
pemasterprimary.vm.box = BOX
pemasterprimary.vm.provider :virtualbox do |v|
v.memory = 2048
end
pemasterprimary.vm.hostname = "pemasterprimary"
pemasterprimary.vm.network "private_network", ip: "192.168.33.10"
end
config.vm.define "pemastersecondary" do |pemastersecondary|
pemastersecondary.vm.box = BOX
pemastersecondary.vm.provider :virtualbox do |v|
v.memory = 2048
end
pemastersecondary.vm.hostname = "pemastersecondary"
pemastersecondary.vm.network "private_network", ip: "192.168.33.11"
end
config.vm.define "puppetdb" do |puppetdb|
puppetdb.vm.box = BOX
puppetdb.vm.provider :virtualbox do |v|
v.memory = 2048
end
puppetdb.vm.hostname = "puppetdb"
puppetdb.vm.network "private_network", ip: "192.168.33.12"
end
config.vm.define "console" do |console|
console.vm.box = BOX
console.vm.provider :virtualbox do |v|
v.memory = 2048
end
console.vm.hostname = "console"
console.vm.network "private_network", ip: "192.168.33.13"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment