Skip to content

Instantly share code, notes, and snippets.

@giridhar
Last active March 27, 2017 14:37
Show Gist options
  • Save giridhar/5ff348f35ad67c3c288295521a6cd463 to your computer and use it in GitHub Desktop.
Save giridhar/5ff348f35ad67c3c288295521a6cd463 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-6.8"
config.vm.network "forwarded_port", guest: 4000, host: 4000
config.vm.network "forwarded_port", guest: 9200, host: 9222
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder "Developer", "/home/vagrant/Developer"
config.vm.synced_folder "search-engine", "/var/www/search" , mount_options: ["dmode=775,fmode=777"]
config.vm.provision :shell, path: "shell/install-rvm.sh", args: "stable", privileged: false
config.vm.provision :shell, path: "shell/install-ruby.sh", args: "2.3", privileged: false
config.vm.provision :shell, path: "shell/setup-dad.sh", privileged: false
# Setup Elasticsearch
config.vm.provision :shell, path: "shell/install-jdk.sh", privileged: false
config.vm.provision :shell, path: "shell/install-es.sh", privileged: false
# config.vm.provision "chef_solo" do |chef|
# chef.version = '12.10.24' ##NOTE Higher versions have problem with vagrant
# chef.cookbooks_path = ['cookbooks']
# chef.log_level = :debug
# # chef.roles_path = 'roles'
# # chef.data_bags_path = 'data_bags'
# chef.add_recipe 'railsdev-setup'
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment