Created
February 8, 2014 10:38
-
-
Save gamame/8881701 to your computer and use it in GitHub Desktop.
Vagrantで複数ノード立ち上げ時にメモリーサイズを指定する
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
# -*- 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| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "centos6" | |
config.vm.define :lbserver do |node| | |
node.vm.network :private_network, ip: "192.168.33.11" | |
end | |
config.vm.define :webserver do |node| | |
node.vm.network :private_network, ip: "192.168.33.12" | |
end | |
config.vm.define :webserver2 do |node| | |
node.vm.network :private_network, ip: "192.168.33.13" | |
end | |
config.vm.define :dbserver do |node| | |
node.vm.network :private_network, ip: "192.168.33.14" | |
end | |
config.vm.define :manage do |node| | |
node.vm.network :private_network, ip: "192.168.33.15" | |
node.vm.provider "virtualbox" do |v| | |
v.customize ["modifyvm", :id, "--memory", 2048] | |
end | |
end | |
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment