Skip to content

Instantly share code, notes, and snippets.

@hardikdangar
Created April 28, 2015 09:37
Show Gist options
  • Save hardikdangar/94dfcdf62e322ebfae5c to your computer and use it in GitHub Desktop.
Save hardikdangar/94dfcdf62e322ebfae5c to your computer and use it in GitHub Desktop.
my vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty-64"
config.vm.box_url = "~/Downloads/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.persistent_storage.enabled = true
config.persistent_storage.location = "virtualdrive.vdi"
config.persistent_storage.size = 50000
config.persistent_storage.mountname = 'apt-cacher-ng-drive'
config.persistent_storage.filesystem = 'ext4'
config.persistent_storage.mountpoint = '/var/cache/apt-cacher-ng'
config.persistent_storage.volgroupname = 'myvolgroup'
config.vm.define "HARDDISKHOST" do |harddiskhost|
end
config.vm.provider "virtualbox" do |vb|
vb.memory = "512"
vb.name = "HARDDISK"
end
config.vm.provision "shell", inline: <<-SHELL
export LANGUAGE="en_US.UTF-8"
echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="en_US.UTF-8"' >> /etc/environment
sudo timedatectl set-timezone Asia/Kolkata
sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment