Skip to content

Instantly share code, notes, and snippets.

@arpitbbhayani
Created March 9, 2016 10:46
Show Gist options
  • Save arpitbbhayani/089b3dfdd87d6fddec84 to your computer and use it in GitHub Desktop.
Save arpitbbhayani/089b3dfdd87d6fddec84 to your computer and use it in GitHub Desktop.
Vagrant.configure('2') do |config|
config.vm.hostname = 'practo-piez.dev'
config.package.name = 'piez.box'
config.vm.box = 'piez.box'
config.vm.box_url = 'http://ncc04.practo.in/appmgr/piez.box'
if config.vm.respond_to? 'box_download_insecure' # Vagrant 1.2.6+
config.vm.box_download_insecure = true
end
config.ssh.insert_key = true
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.network :private_network,
ip: '10.0.1.2'
config.vm.synced_folder '.', '/vagrant',
id: 'vagrant-root',
owner: 'vagrant',
group: 'www-data'
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '1020']
vb.customize ['modifyvm', :id, '--ostype', 'Ubuntu_64']
vb.customize ['modifyvm', :id, '--ioapic', 'on']
vb.customize ['modifyvm', :id, '--cpus', '2']
# This allows symlinks to be created within the /vagrant root directory,
# which is something librarian-puppet needs to be able to do. This might
# be enabled by default depending on what version of VirtualBox is used.
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
config.vm.define "piez" do |web|
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment