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
OpenEdx
configuration
Commits
5715d99b
Commit
5715d99b
authored
Dec 24, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a way to update legacy ora configuration.
parent
760b97da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
playbooks/edx-east/legacy_ora.yml
+10
-0
playbooks/roles/legacy_ora/tasks/main.yml
+37
-0
No files found.
playbooks/edx-east/legacy_ora.yml
0 → 100644
View file @
5715d99b
# ansible-playbook -i ec2.py --limit="tag_group_grader:&tag_environment_stage" legacy_ora.yml -e "COMMON_ENV_TYPE=stage secure_dir=/path/to/secure/dir"
-
name
:
Deploy legacy_ora
hosts
:
all
sudo
:
True
gather_facts
:
True
vars
:
ora_app_dir
:
'
/opt/wwc'
ora_user
:
'
www-data'
roles
:
-
legacy_ora
playbooks/roles/legacy_ora/tasks/main.yml
0 → 100644
View file @
5715d99b
#
# Update config for a legacy ora installation.
#
# This role requires that ora_app_dir and ora_user both be defined.
# There is no default for them.
#
-
name
:
legacy_ora | create ora application config
file
:
src={{secure_dir}}/files/{{COMMON_ENV_TYPE}}/legacy_ora/ora.env.json
dest={{ora_app_dir}}/env.json
sudo_user
:
"
{{
ora_user
}}"
register
:
env_state
tags
:
-
deploy
-
name
:
legacy_ora | create ora auth file
file
:
src={{secure_dir}}/files/{{COMMON_ENV_TYPE}}/legacy_ora/ora.auth.json
dest={{ora_app_dir}}/auth.json
sudo_user
:
"
{{
ora_user
}}"
register
:
auth_state
tags
:
-
deploy
# Restart ORA Services
-
name
:
legacy_ora | restart edx-ora
service
:
name=edx-ora
state=restarted
when
:
env_state.changed and auth_state.changed
-
name
:
legacy_ora | restart edx-ora-celery
service
:
name=edx-ora-celery
state=restarted
when
:
env_state.changed and auth_state.changed
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