Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
b1b0ccc7
Commit
b1b0ccc7
authored
Jul 31, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable ORA1 unless an environment variable is set
parent
13e888db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
playbooks/roles/local_dev/tasks/main.yml
+4
-1
playbooks/vagrant-devstack.yml
+3
-1
vagrant/base/devstack/Vagrantfile
+14
-4
No files found.
playbooks/roles/local_dev/tasks/main.yml
View file @
b1b0ccc7
...
...
@@ -27,6 +27,7 @@
src=app_bashrc.j2 dest={{ item.home }}/.bashrc
owner={{ item.user }} mode=755
with_items
:
localdev_accounts
ignore_errors
:
yes
# Default to the correct git config
# No more accidentally force pushing to master! :)
...
...
@@ -35,6 +36,7 @@
src=gitconfig dest={{ item.home }}/.gitconfig
owner={{ item.user }} mode=700
with_items
:
localdev_accounts
ignore_errors
:
yes
# Configure X11 for application users
-
name
:
preserve DISPLAY for sudo
...
...
@@ -59,4 +61,5 @@
template
:
src=paver_autocomplete dest={{ item.home }}/.paver_autocomplete
owner={{ item.user }} mode=755
with_items
:
localdev_accounts
with_items
:
localdev_accounts
ignore_errors
:
yes
playbooks/vagrant-devstack.yml
View file @
b1b0ccc7
...
...
@@ -12,6 +12,7 @@
EDXAPP_NO_PREREQ_INSTALL
:
0
COMMON_MOTD_TEMPLATE
:
'
devstack_motd.tail.j2'
COMMON_SSH_PASSWORD_AUTH
:
"
yes"
ENABLE_LEGACY_ORA
:
!!null
vars_files
:
-
"
group_vars/all"
roles
:
...
...
@@ -22,7 +23,8 @@
-
oraclejdk
-
elasticsearch
-
forum
-
ora
-
role
:
ora
when
:
ENABLE_LEGACY_ORA
-
browsers
-
local_dev
-
demo
...
...
vagrant/base/devstack/Vagrantfile
View file @
b1b0ccc7
...
...
@@ -50,8 +50,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
create:
true
,
owner:
"edxapp"
,
group:
"www-data"
config
.
vm
.
synced_folder
"
#{
forum_mount_dir
}
"
,
"/edx/app/forum/cs_comments_service"
,
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
config
.
vm
.
synced_folder
"
#{
edx_platform_mount_dir
}
"
,
"/edx/app/edxapp/edx-platform"
,
create:
true
,
nfs:
true
...
...
@@ -59,8 +62,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
create:
true
,
nfs:
true
config
.
vm
.
synced_folder
"
#{
forum_mount_dir
}
"
,
"/edx/app/forum/cs_comments_service"
,
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
...
...
@@ -95,5 +101,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config
.
vm
.
provision
:ansible
do
|
ansible
|
ansible
.
playbook
=
"../../../playbooks/vagrant-devstack.yml"
ansible
.
verbose
=
"vvvv"
if
ENV
[
'ENABLE_LEGACY_ORA'
]
ansible
.
extra_vars
=
{
ENABLE_LEGACY_ORA
:
true
}
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment