Skip to content

Instantly share code, notes, and snippets.

@kirankotari
Created February 20, 2019 19:40
Show Gist options
  • Save kirankotari/171bf3e94a717d8414764a1347dbc933 to your computer and use it in GitHub Desktop.
Save kirankotari/171bf3e94a717d8414764a1347dbc933 to your computer and use it in GitHub Desktop.
M220P: MongoDB for Python Developers
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "mongodb" do |mongodb|
mongodb.vm.box = "ubuntu/trusty64"
mongodb.vm.box_check_update = false
mongodb.vm.network "private_network", ip: "192.168.27.71"
mongodb.vm.provider "virtual_box" do |vb|
vb.name = "mongodb"
vb.memory = 1024
vb.cpus = 2
end
mongodb.vm.provision "shell", path: "mongodb_shell.sh"
end
config.vm.define "m220p" do |m220p|
m220p.vm.box = "ubuntu/trusty64"
m220p.vm.box_check_update = true
m220p.vm.network "private_network", ip: "192.168.10.10"
m220p.vm.synced_folder "./data", "/vagrant_data"
m220p.vm.provider "virtual_box" do |vb|
vb.name = "m220p"
end
m220p.vm.provision "shell" do |shell|
shell.path = "m220p_shell.sh"
shell.privileged = false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment