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
87eb8ec2
Commit
87eb8ec2
authored
May 22, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sets --distribute flag in virtualenv creation
and conditionalizes nginx site creation in edxapp role
parent
a704f356
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
6 deletions
+26
-6
playbooks/roles/common/tasks/create_venv.yml
+7
-4
playbooks/roles/edxapp/tasks/cms.yml
+2
-0
playbooks/roles/edxapp/tasks/lms-preview.yml
+2
-0
playbooks/roles/edxapp/tasks/lms-xml.yml
+4
-2
playbooks/roles/edxapp/tasks/lms.yml
+4
-0
playbooks/roles/nginx/tasks/main.yml
+7
-0
No files found.
playbooks/roles/common/tasks/create_venv.yml
View file @
87eb8ec2
---
# create the 'edx' virtual environment in /opt so that roles can populate it
-
name
:
easy_install pip
easy_install
:
name=pip
-
name
:
Install python and pip
apt
:
pkg={{item}} install_recommends=yes state=present update_cache=yes
with_items
:
-
python2.7
-
python-pip
tags
:
-
venv_base
-
pre_install
-
install
-
name
:
pip install virtualenv
...
...
@@ -25,7 +28,7 @@
-
install
-
name
:
create the edx virtualenv directory initial contents
command
:
/usr/local/bin/virtualenv $venv_dir creates=$venv_dir/bin/activate
command
:
/usr/local/bin/virtualenv $venv_dir
--distribute
creates=$venv_dir/bin/activate
tags
:
-
venv_base
-
install
playbooks/roles/edxapp/tasks/cms.yml
View file @
87eb8ec2
...
...
@@ -18,8 +18,10 @@
-
update
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=cms
when_set
:
$nginx_role_run
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=cms-backend
when_set
:
$nginx_role_run
-
name
:
Create CMS log target directory
file
:
path={{log_base_dir}}/cms state=directory owner=syslog group=adm mode=2770
...
...
playbooks/roles/edxapp/tasks/lms-preview.yml
View file @
87eb8ec2
...
...
@@ -16,8 +16,10 @@
-
lms-preview-env
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-preview
when_set
:
$nginx_role_run
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-preview-backend
when_set
:
$nginx_role_run
# Creates LMS Preview upstart file
-
include
:
../../gunicorn/tasks/upstart.yml service_variant=lms-preview
playbooks/roles/edxapp/tasks/lms-xml.yml
View file @
87eb8ec2
...
...
@@ -16,10 +16,12 @@
-
cms-env
-
cms
-
update
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-xml
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-xml
when_set
:
$nginx_role_run
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-xml-backend
when_set
:
$nginx_role_run
# Creates upstart file
-
include
:
../../gunicorn/tasks/upstart.yml service_variant=lms-xml
playbooks/roles/edxapp/tasks/lms.yml
View file @
87eb8ec2
...
...
@@ -14,6 +14,10 @@
-
update
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms
when_set
:
$nginx_role_run
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=lms-backend
when_set
:
$nginx_role_run
# Creates LMS upstart file
-
include
:
../../gunicorn/tasks/upstart.yml service_variant=lms
playbooks/roles/nginx/tasks/main.yml
View file @
87eb8ec2
...
...
@@ -60,4 +60,11 @@
tags
:
-
nginx
-
update
-
name
:
Register the fact that nginx has run
command
:
echo True
register
:
nginx_role_run
tags
:
-
nginx
-
update
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