# -*- 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.require_version ">= 1.5.0"
require 'etc'
user = Etc.getlogin
# A combo of the analytics box, the database server, and the cleanroom matching server
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "matcher" do |matcher|
matcher.vm.hostname = "match.local"
matcher.vm.box = "centos-6.5"
matcher.vm.network "private_network", ip: "33.33.33.12"
matcher.vm.network "forwarded_port", guest: 27017, host: 2700, auto_correct: true #Mongo
matcher.vm.network "forwarded_port", id: "ssh", guest: 22, host: 2202 # override SSH port
matcher.ssh.insert_key = false
# NFS mounts cannot be owned by any user (adsummos) that doesn't exist on the base image.
matcher.vm.synced_folder "../../../O2O", "/home/adsummos/analytics", type: "nfs", create: true
matcher.vm.synced_folder "../../../chef-repo", "/var/chef-repo", type: "nfs", create: true
matcher.vm.provider :virtualbox do |virtualbox|
virtualbox.customize ["modifyvm", :id, "--memory", 1280]
virtualbox.customize ["modifyvm", :id, "--name", "CleanroomMatchServer"] # Sets VM name in VirtualBox.
end
end
config.vm.define "hdp" do |hdp|
hdp.vm.box = "hdp_2.3_box"
hdp.vm.provider :aws do |aws, override|
aws.ami = "ami-57cd8732" # Stock CentOS 6 with HVM
aws.instance_type = "t2.large"
aws.subnet_id = "subnet-aebab1da" # Public subnet
aws.security_groups = "sg-b69836d0" # SG name = "development_HDP_VMs"
aws.keypair_name = "korrelate2012" # Assign the default keypair for SSH.
# Configure user AWS keys in .profile to be exported as ENV variables.
aws.access_key_id = ENV['AWS_ACCESS_KEY']
aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
# Tag each instance with developer name.
aws.tags = {
'Name' => "dev_HDP_#{user}"
}
# Must have private component korrelate2012 key pair in .ssh dir.
override.ssh.username = "ec2-user"
override.ssh.private_key_path = "~/.ssh/korrelate2012.pem"
end
end
end
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4cbd5a41-9627-48b9-b291-8226bfa1a4a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.