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
d3d20ab0
Commit
d3d20ab0
authored
Jun 02, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legacy too
parent
c0e4f904
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
playbooks/roles/legacy_ora/tasks/main.yml
+0
-44
No files found.
playbooks/roles/legacy_ora/tasks/main.yml
deleted
100644 → 0
View file @
c0e4f904
#
# 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.
#
-
fail
:
msg="ora_app_dir not defined. eg. /edx/app/ora, /opt/wwc"
when
:
ora_app_dir is not defined
-
fail
:
msg="ora_user not defined. eg. ora, www-data"
when
:
ora_user is not defined
-
fail
:
msg="COMMON_ENVIRONMENT not defined. eg. stage, prod"
when
:
COMMON_ENVIRONMENT is not defined
-
fail
:
msg="secure_dir not defined. This is a path to the secure ora config file."
when
:
secure_dir is not defined
-
name
:
create ora application config
copy
:
src={{ secure_dir }}/files/{{ COMMON_ENVIRONMENT }}/legacy_ora/ora.env.json
dest={{ ora_app_dir }}/env.json
sudo_user
:
"
{{
ora_user
}}"
register
:
env_state
-
name
:
create ora auth file
copy
:
src={{ secure_dir }}/files/{{ COMMON_ENVIRONMENT }}/legacy_ora/ora.auth.json
dest={{ ora_app_dir }}/auth.json
sudo_user
:
"
{{
ora_user
}}"
register
:
auth_state
# Restart ORA Services
-
name
:
restart edx-ora
service
:
name=edx-ora
state=restarted
when
:
env_state.changed or auth_state.changed
-
name
:
restart edx-ora-celery
service
:
name=edx-ora-celery
state=restarted
when
:
env_state.changed or 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