Vagrantfile 927 Bytes
Newer Older
John Jarvis committed
1
MEMORY = 1024
2 3 4 5 6 7
CPU_COUNT = 2

Vagrant.configure("2") do |config|
  config.vm.box     = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"

8
  config.vm.network :private_network, ip: "192.168.33.10"
9 10 11 12 13 14 15 16 17 18

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", MEMORY.to_s]

    # You can adjust this to the amount of CPUs your system has available
    vb.customize ["modifyvm", :id, "--cpus", CPU_COUNT.to_s]
  end

  config.vm.provision :ansible do |ansible|
    # point Vagrant at the location of your playbook you want to run
19
    ansible.playbook = "../../playbooks/vagrant-shortstack.yml"
20 21
    ansible.inventory_path = "../../playbooks/vagrant/inventory.ini"
    ansible.verbose = "extra"
22 23 24
    # to target the master branch of edx-platform, instead of the release branch,
    # just uncomment this line
    # ansible.extra_vars = { edx_platform_commit: "master" }
25 26
  end
end