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
3a22b4fa
Commit
3a22b4fa
authored
May 22, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #90 from edx/jbau-distribute
sets --distribute flag in virtualenv creation
parents
a704f356
b4a72eea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
playbooks/roles/common/tasks/create_venv.yml
+7
-4
playbooks/roles/edxapp/tasks/lms-xml.yml
+1
-1
playbooks/roles/nginx/tasks/main.yml
+7
-0
playbooks/roles/nginx/tasks/nginx_site.yml
+2
-0
No files found.
playbooks/roles/common/tasks/create_venv.yml
View file @
3a22b4fa
---
# 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/lms-xml.yml
View file @
3a22b4fa
...
...
@@ -16,7 +16,7 @@
-
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-backend
...
...
playbooks/roles/nginx/tasks/main.yml
View file @
3a22b4fa
...
...
@@ -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
playbooks/roles/nginx/tasks/nginx_site.yml
View file @
3a22b4fa
...
...
@@ -7,6 +7,7 @@
# seems like paths in first_available_file must be relative to the playbooks dir
-
"
roles/nginx/templates/{{
site_name
}}.j2"
notify
:
restart nginx
when_set
:
$nginx_role_run
tags
:
-
nginx
-
lms
...
...
@@ -17,6 +18,7 @@
-
name
:
Creating nginx config link {{ site_name }}
file
:
src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state={{ state }} owner=root group=root
notify
:
restart nginx
when_set
:
$nginx_role_run
tags
:
-
nginx
-
lms
...
...
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