Commit 47f3f260 by John Jarvis

Creates three types of vagrant configs

* vagrant-shortstack
  - lms / studio / forums
* vagrant-shortstack-xml
  - lms / studio / forums (xml primary)
* vagrant-fullstack
  - everything that we think is working
parent 1b2a6ed8
...@@ -15,4 +15,11 @@ ...@@ -15,4 +15,11 @@
- rabbitmq - rabbitmq
- xqueue - xqueue
- xserver - xserver
- oraclejdk
- elasticsearch
- { role: 'edxapp', celery_worker: True } - { role: 'edxapp', celery_worker: True }
- role: rbenv
rbenv_user: "{{ forum_user }}"
rbenv_user_home: "{{ forum_home }}"
rbenv_ruby_version: "{{ forum_ruby_version }}"
- forum
- name: Configure instance(s)
hosts: vagrant
sudo: True
gather_facts: True
vars:
migrate_db: "yes"
openid_workaround: True
vars_files:
- "group_vars/all"
roles:
- common
- nginx
- edxlocal
- edxapp
- oraclejdk
- elasticsearch
- { role: 'edxapp', celery_worker: True }
- role: rbenv
rbenv_user: "{{ forum_user }}"
rbenv_user_home: "{{ forum_home }}"
rbenv_ruby_version: "{{ forum_ruby_version }}"
- forum
...@@ -19,7 +19,7 @@ Vagrant.configure("2") do |config| ...@@ -19,7 +19,7 @@ Vagrant.configure("2") do |config|
ansible.playbook = "../../playbooks/vagrant-fullstack.yml" ansible.playbook = "../../playbooks/vagrant-fullstack.yml"
ansible.inventory_file = "../../playbooks/vagrant/inventory.ini" ansible.inventory_file = "../../playbooks/vagrant/inventory.ini"
ansible.extra_vars = { secure_dir: "secure_example", c_skip_grader_checkout: 'True' } ansible.extra_vars = { c_skip_grader_checkout: 'True' }
ansible.verbose = true ansible.verbose = true
end end
end end
MEMORY = 512
CPU_COUNT = 2
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.10"
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
ansible.playbook = "../../playbooks/vagrant-shortstack-xml.yml"
ansible.inventory_file = "../../playbooks/vagrant/inventory.ini"
ansible.verbose = true
end
end
...@@ -16,10 +16,9 @@ Vagrant.configure("2") do |config| ...@@ -16,10 +16,9 @@ Vagrant.configure("2") do |config|
config.vm.provision :ansible do |ansible| config.vm.provision :ansible do |ansible|
# point Vagrant at the location of your playbook you want to run # point Vagrant at the location of your playbook you want to run
ansible.playbook = "../../playbooks/vagrant.yml" ansible.playbook = "../../playbooks/vagrant-shortstack.yml"
ansible.inventory_file = "../../playbooks/vagrant/inventory.ini" ansible.inventory_file = "../../playbooks/vagrant/inventory.ini"
ansible.extra_vars = { secure_dir: "secure_example" }
ansible.verbose = true ansible.verbose = true
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment