Skip to content

Instantly share code, notes, and snippets.

@alexshd
Last active August 29, 2015 14:12
Show Gist options
  • Save alexshd/5e883748ac92b85ad61f to your computer and use it in GitHub Desktop.
Save alexshd/5e883748ac92b85ad61f to your computer and use it in GitHub Desktop.
elastic-mongo-redis
Vagrant.configure(2) do |config|
#
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "vidible-v2"
config.vm.box_url = "https://s3-eu-west-1.amazonaws.com/aol-vagrant-box/elastic-redis-mongo3.0.3.box"
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 27017, host: 27017
config.vm.network "forwarded_port", guest: 9200, host: 9200
config.vm.network "forwarded_port", guest: 9300, host: 9300
config.vm.network "forwarded_port", guest: 6379, host: 6379
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
end
@israelio
Copy link

add:
config.ssh.username='vagrant'
config.ssh.password='vagrant'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment