Commit 29c568e5 by Will Daly

Merge pull request #1347 from edx/will/remove-ora1-from-devstack

Remove ORA1 role from devstack, in preparation for deprecation
parents d0c334be b1b0ccc7
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
src=app_bashrc.j2 dest={{ item.home }}/.bashrc src=app_bashrc.j2 dest={{ item.home }}/.bashrc
owner={{ item.user }} mode=755 owner={{ item.user }} mode=755
with_items: localdev_accounts with_items: localdev_accounts
ignore_errors: yes
# Default to the correct git config # Default to the correct git config
# No more accidentally force pushing to master! :) # No more accidentally force pushing to master! :)
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
src=gitconfig dest={{ item.home }}/.gitconfig src=gitconfig dest={{ item.home }}/.gitconfig
owner={{ item.user }} mode=700 owner={{ item.user }} mode=700
with_items: localdev_accounts with_items: localdev_accounts
ignore_errors: yes
# Configure X11 for application users # Configure X11 for application users
- name: preserve DISPLAY for sudo - name: preserve DISPLAY for sudo
...@@ -59,4 +61,5 @@ ...@@ -59,4 +61,5 @@
template: template:
src=paver_autocomplete dest={{ item.home }}/.paver_autocomplete src=paver_autocomplete dest={{ item.home }}/.paver_autocomplete
owner={{ item.user }} mode=755 owner={{ item.user }} mode=755
with_items: localdev_accounts with_items: localdev_accounts
ignore_errors: yes
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
EDXAPP_NO_PREREQ_INSTALL: 0 EDXAPP_NO_PREREQ_INSTALL: 0
COMMON_MOTD_TEMPLATE: 'devstack_motd.tail.j2' COMMON_MOTD_TEMPLATE: 'devstack_motd.tail.j2'
COMMON_SSH_PASSWORD_AUTH: "yes" COMMON_SSH_PASSWORD_AUTH: "yes"
ENABLE_LEGACY_ORA: !!null
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
...@@ -22,7 +23,8 @@ ...@@ -22,7 +23,8 @@
- oraclejdk - oraclejdk
- elasticsearch - elasticsearch
- forum - forum
- ora - role: ora
when: ENABLE_LEGACY_ORA
- browsers - browsers
- browsermob-proxy - browsermob-proxy
- local_dev - local_dev
......
...@@ -50,8 +50,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...@@ -50,8 +50,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
create: true, owner: "edxapp", group: "www-data" create: true, owner: "edxapp", group: "www-data"
config.vm.synced_folder "#{forum_mount_dir}", "/edx/app/forum/cs_comments_service", config.vm.synced_folder "#{forum_mount_dir}", "/edx/app/forum/cs_comments_service",
create: true, owner: "forum", group: "www-data" create: true, owner: "forum", group: "www-data"
config.vm.synced_folder "#{ora_mount_dir}", "/edx/app/ora/ora",
create: true, owner: "ora", group: "www-data" if ENV['ENABLE_LEGACY_ORA']
config.vm.synced_folder "#{ora_mount_dir}", "/edx/app/ora/ora",
create: true, owner: "ora", group: "www-data"
end
else else
config.vm.synced_folder "#{edx_platform_mount_dir}", "/edx/app/edxapp/edx-platform", config.vm.synced_folder "#{edx_platform_mount_dir}", "/edx/app/edxapp/edx-platform",
create: true, nfs: true create: true, nfs: true
...@@ -59,8 +62,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...@@ -59,8 +62,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
create: true, nfs: true create: true, nfs: true
config.vm.synced_folder "#{forum_mount_dir}", "/edx/app/forum/cs_comments_service", config.vm.synced_folder "#{forum_mount_dir}", "/edx/app/forum/cs_comments_service",
create: true, nfs: true create: true, nfs: true
config.vm.synced_folder "#{ora_mount_dir}", "/edx/app/ora/ora",
create: true, nfs: true if ENV['ENABLE_LEGACY_ORA']
config.vm.synced_folder "#{ora_mount_dir}", "/edx/app/ora/ora",
create: true, nfs: true
end
end end
...@@ -95,5 +101,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...@@ -95,5 +101,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :ansible do |ansible| config.vm.provision :ansible do |ansible|
ansible.playbook = "../../../playbooks/vagrant-devstack.yml" ansible.playbook = "../../../playbooks/vagrant-devstack.yml"
ansible.verbose = "vvvv" ansible.verbose = "vvvv"
if ENV['ENABLE_LEGACY_ORA']
ansible.extra_vars = { ENABLE_LEGACY_ORA: true }
end
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