Last active
August 29, 2015 14:24
-
-
Save ksingh7/85d887b92a448a042ca8 to your computer and use it in GitHub Desktop.
CentOS7 virtual machines for openstack deployment
This file contains 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
# Licensed under the Apache License, Version 2.0 | |
# Copyright Karan Singh (Karan_singh1@live.com) | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
### IMPORTANT NOTE ### | |
# make sure you install $ sudo vagrant plugin install vagrant-hostmanager | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.hostmanager.enabled = true | |
config.hostmanager.manage_host = false | |
config.hostmanager.ignore_private_ip = false | |
config.hostmanager.include_offline = true | |
config.vm.box = "centos7-120615" | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
############### node1 VM ############################ | |
config.vm.define "node1" do |node1| | |
node1.vm.network :private_network, ip: "10.0.1.10" | |
node1.vm.hostname = "node1.oscloud.fi" | |
node1.hostmanager.aliases = %w(node1) | |
node1.vm.provider "virtualbox" do |v| | |
v.customize ["modifyvm", :id, "--memory", "4096"] | |
v.customize ["modifyvm", :id, "--cpus", "2"] | |
v.gui = true | |
end | |
end | |
############### node2 VM ############################ | |
config.vm.define "node2" do |node2| | |
node2.vm.network :private_network, ip: "10.0.1.11" | |
node2.vm.hostname = "node2.oscloud.fi" | |
node2.hostmanager.aliases = %w(node2) | |
node2.vm.provider "virtualbox" do |v| | |
v.customize ["modifyvm", :id, "--memory", "4096"] | |
v.customize ["modifyvm", :id, "--cpus", "2"] | |
v.gui = true | |
end | |
end | |
################################################################### | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment