Commit 0b735e37 by muhammad-ammar

cleanup

parent 4f450aa7
...@@ -359,10 +359,7 @@ video_pipeline="true" ...@@ -359,10 +359,7 @@ video_pipeline="true"
declare -A deploy declare -A deploy
roles="edxapp forum ecommerce credentials discovery video_pipeline notifier xqueue xserver certs demo testcourses" roles="edxapp forum ecommerce credentials discovery video_pipeline notifier xqueue xserver certs demo testcourses"
echo "Roles ====>"
echo $roles
for role in $roles; do for role in $roles; do
echo $role
deploy[$role]=${!role} deploy[$role]=${!role}
done done
......
...@@ -2,33 +2,26 @@ ...@@ -2,33 +2,26 @@
# under /playbooks (e.g., "foo.yml"), export its name (e.g., "foo") as the value # under /playbooks (e.g., "foo.yml"), export its name (e.g., "foo") as the value
# of the environment variable VAGRANT_ANSIBLE_PLAYBOOK, and execute `vagrant up` # of the environment variable VAGRANT_ANSIBLE_PLAYBOOK, and execute `vagrant up`
# from within this directory. # from within this directory.
MEMORY = 1024 MEMORY = 2048
CPU_COUNT = 2 CPU_COUNT = 2
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.box = "ubuntu_xenial" config.vm.box = "xenial64"
config.vm.box_url = "http://files.vagrantup.com/xenial64.box"
config.vm.network :private_network, ip: "192.168.33.20" config.vm.network :private_network, ip: "192.168.33.20"
config.vm.network :forwarded_port, guest: 8555, host: 8555 config.vm.network :forwarded_port, guest: 8080, host: 8080
config.ssh.insert_key = true
config.vm.provider :virtualbox do |vb| config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", MEMORY.to_s] vb.customize ["modifyvm", :id, "--memory", MEMORY.to_s]
# You can adjust this to the amount of CPUs your system has available # You can adjust this to the amount of CPUs your system has available
vb.customize ["modifyvm", :id, "--cpus", CPU_COUNT.to_s] vb.customize ["modifyvm", :id, "--cpus", CPU_COUNT.to_s]
vb.customize ['modifyvm', :id, '--nictype1', 'virtio']
end end
config.ssh.forward_x11 = true
config.vm.provision :ansible do |ansible| config.vm.provision :ansible do |ansible|
ansible.playbook = "../../../playbooks/" + ENV['VAGRANT_ANSIBLE_PLAYBOOK'] + ".yml" ansible.playbook = "../../../playbooks/" + ENV['VAGRANT_ANSIBLE_PLAYBOOK'] + ".yml"
ansible.verbose = "vvvv" ansible.verbose = "extra"
ansible.extra_vars = {
edx_django_service_version: 'ammar/changes-for-config'
}
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