Last active
October 21, 2015 15:22
-
-
Save psi29a/3ebe806cfc01bb15bc6d to your computer and use it in GitHub Desktop.
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| | |
if Vagrant.has_plugin?("vagrant-cachier") | |
config.cache.scope = :box | |
end | |
config.vm.define "scaler-1" do |instance| | |
instance.vm.box = "singledisk.box" | |
instance.vm.box_url = "http://xxx/singledisk.box" | |
instance.vm.network "private_network", ip: "192.168.49.4" | |
instance.vm.network "forwarded_port", guest: 8080, host: 9010, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 8180, host: 9009, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 8443, host: 9011, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 80, host: 9013, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 9300, host: 9008, auto_correct: true | |
instance.vm.network "forwarded_port", id: "ssh", guest: 22, host: 9006, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 443, host: 9012, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 9400, host: 9007, auto_correct: true | |
instance.vm.network "forwarded_port", guest: 18443, host: 9014, auto_correct: true | |
# Customizations | |
instance.vm.provider "virtualbox" do |v| | |
v.customize ["modifyvm", :id, "--cpus", 2] | |
v.customize ["modifyvm", :id, "--memory", 3072] | |
v.customize ["modifyvm", :id, "--nictype1", "Am79C973"] | |
v.customize ["modifyvm", :id, "--nictype2", "Am79C973"] | |
v.customize ["modifyvm", :id, "--nictype3", "Am79C973"] | |
v.customize ["modifyvm", :id, "--nictype4", "Am79C973"] | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
v.customize ["modifyvm", :id, "--boot1", "disk"] | |
v.customize ["modifyvm", :id, "--boot2", "net"] | |
v.customize ["modifyvm", :id, "--boot3", "none"] | |
v.customize ["modifyvm", :id, "--macaddress1", "00163e098f4a"] | |
v.customize ["modifyvm", :id, "--macaddress1", "00163e5be610"] | |
v.customize ["modifyvm", :id, "--macaddress1", "00163e0b4e19"] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment