Created
August 19, 2014 02:38
-
-
Save FlatMapIO/43713ee3a4dc90444790 to your computer and use it in GitHub Desktop.
coreos-vagrant config.rb
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
# coreos-vagrant is configured through a series of configuration | |
# options (global ruby variables) which are detailed below. To modify | |
# these options, first copy this file to "config.rb". Then simply | |
# uncomment the necessary lines, leaving the $, and replace everything | |
# after the equals sign.. | |
# Size of the CoreOS cluster created by Vagrant | |
#$num_instances=1 | |
# Official CoreOS channel from which updates should be downloaded | |
$update_channel='stable' | |
# Log the serial consoles of CoreOS VMs to log/ | |
# Enable by setting value to true, disable with false | |
# WARNING: Serial logging is known to result in extremely high CPU usage with | |
# VirtualBox, so should only be used in debugging situations | |
#$enable_serial_logging=false | |
# Enable port forwarding of Docker TCP socket | |
# Set to the TCP port you want exposed on the *host* machine, default is 2375 | |
# If 2375 is used, Vagrant will auto-increment (e.g. in the case of $num_instances > 1) | |
# You can then use the docker tool locally by setting the following env var: | |
# export DOCKER_HOST='tcp://127.0.0.1:2375' | |
# $expose_docker_tcp=8080 | |
# Setting for VirtualBox VMs | |
#$vb_gui = false | |
#$vb_memory = 1024 | |
#$vb_cpus = 1 | |
Vagrant.configure("2") do |config| | |
config.vm.synced_folder "data", "/home/core/data", create: true, id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp'] | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
config.vm.network "forwarded_port", guest: 9090, host: 9090 | |
config.vm.network "forwarded_port", guest: 9990, host: 9990 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment