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
ea1ac179
Commit
ea1ac179
authored
Oct 31, 2013
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
supervisor-ora: Change owner of `var/` folders to runtime user (common_web_user)
parent
d0a490ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
playbooks/roles/ora/tasks/ease.yml
+1
-1
playbooks/roles/ora/tasks/main.yml
+7
-1
No files found.
playbooks/roles/ora/tasks/ease.yml
View file @
ea1ac179
...
...
@@ -44,6 +44,6 @@
-
name
:
ora | install nltk data using rendered shell script
command
:
"
{{ora_ease_venv_dir}}/bin/python
-m
nltk.downloader
-d
{{
ora_nltk_data_dir
}}
all"
when
:
ora_nltk_data_installed.stdout != "Found"
sudo_user
:
"
{{
ora
_user
}}"
sudo_user
:
"
{{
common_web
_user
}}"
tags
:
-
deploy
playbooks/roles/ora/tasks/main.yml
View file @
ea1ac179
...
...
@@ -8,13 +8,19 @@
name="{{ ora_user }}" home="{{ ora_app_dir }}"
createhome=no shell=/bin/false
-
name
:
ora | create ora app
and data
dir
-
name
:
ora | create ora app dir
file
:
>
path="{{ item }}" state=directory
owner="{{ ora_user }}" group="{{ common_web_group }}"
with_items
:
-
"
{{
ora_venvs_dir
}}"
-
"
{{
ora_app_dir
}}"
-
name
:
ora | create ora data dir, owned by {{ common_web_user }}
file
:
>
path="{{ item }}" state=directory
owner="{{ common_web_user }}" group="{{ common_web_group }}"
with_items
:
-
"
{{
ora_data_dir
}}"
-
"
{{
ora_app_dir
}}/ml_models"
...
...
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