Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Created January 10, 2015 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simkimsia/61d99e80256f9cf55267 to your computer and use it in GitHub Desktop.
Save simkimsia/61d99e80256f9cf55267 to your computer and use it in GitHub Desktop.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
## see https://vagrantcloud.com/ubuntu/boxes/trusty64
## it should be downloading from https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.99"
config.vm.hostname = "djangopythondev"
#Add any alias:
config.hostsupdater.aliases = [
"django1.dev"
]
# feel free to change
config.vm.synced_folder ".", "/vagrant", :nfs => true
# Fix for Ansible bug resulting in an encoding error
ENV['PYTHONIOENCODING'] = "utf-8"
config.vm.provision "ansible" do |ansible|
ansible.limit = 'all'
ansible.playbook = "ansible/development.yml"
ansible.inventory_path = "ansible/hosts"
end
config.vm.post_up_message = "\n\nProvisioning is done"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment