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
5a499849
Commit
5a499849
authored
May 16, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in a discern user
parent
d6e50911
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
playbooks/roles/discern/tasks/main.yml
+8
-4
playbooks/roles/discern/vars/main.yml
+3
-2
No files found.
playbooks/roles/discern/tasks/main.yml
View file @
5a499849
---
-
name
:
Create discern user
# Admin users, by definition, should be able to sudo w/ password, and read adm-only files
user
:
name={{ discern_user }} append=yes groups={{ "adm,edx" }} shell=/bin/bash
-
name
:
upload sudoers template to sudoers.tmp
template
:
src=sudoers.j2 dest=/etc/sudoers.tmp owner=root group=root mode=0440
...
...
@@ -14,10 +18,10 @@
#Upload config files for django (auth and env)
-
name
:
create discern application config env.json file
template
:
src=env.json.j2 dest={{app_base_dir}}/env.json owner=
root
group=edx mode=0640
template
:
src=env.json.j2 dest={{app_base_dir}}/env.json owner=
{{discern_user}}
group=edx mode=0640
-
name
:
create discern auth file auth.json
template
:
src=auth.json.j2 dest={{app_base_dir}}/auth.json owner=
root
group=edx mode=0640
template
:
src=auth.json.j2 dest={{app_base_dir}}/auth.json owner=
{{discern_user}}
group=edx mode=0640
#Needed if using redis to prevent memory issues
-
name
:
change memory commit settings -- needed for redis
...
...
@@ -36,7 +40,7 @@
#Create directories for repos
-
name
:
create discern and ease directories and set permissions
file
:
path={{item}} owner=
root
group=edx mode=2775 state=directory
file
:
path={{item}} owner=
{{discern_user}}
group=edx mode=2775 state=directory
with_items
:
-
${discern_dir}
-
${ease_dir}
...
...
@@ -80,7 +84,7 @@
shell
:
command="{{venv_dir}}/bin/python -m nltk.downloader -d {{nltk_data_dir}} all"
-
name
:
set permissions on nltk data directory
file
:
path={{nltk_data_dir}} owner=
root
group=edx mode=2775 state=directory
file
:
path={{nltk_data_dir}} owner=
{{discern_user}}
group=edx mode=2775 state=directory
#Run this instead of using the ansible module because the ansible module only support syncdb of these three, and does not
#support virtualenvs as of this comment
...
...
playbooks/roles/discern/vars/main.yml
View file @
5a499849
...
...
@@ -7,4 +7,5 @@ nltk_data_dir: /usr/share/nltk_data
ease_branch
:
master
discern_branch
:
dev
nginx_listen_port
:
80
gunicorn_port
:
7999
\ No newline at end of file
gunicorn_port
:
7999
discern_user
:
discern
\ No newline at end of file
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