Skip to content

Instantly share code, notes, and snippets.

@brokenthumbs
Created March 12, 2014 17:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brokenthumbs/9511959 to your computer and use it in GitHub Desktop.
Save brokenthumbs/9511959 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
HOSTS = [
["puppet-master", 100],
["puppet-agent", 101],
]
HOSTS.each do |(hostname, last_octet)|
ip = "192.168.200." + last_octet.to_s
config.vm.define hostname do |cfg|
cfg.vm.hostname = hostname
cfg.vm.box = "centos-6.5"
cfg.vm.network :private_network, ip: ip
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment