Created
January 10, 2015 09:19
-
-
Save simkimsia/61d99e80256f9cf55267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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