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
f716e9ba
Commit
f716e9ba
authored
Apr 27, 2016
by
Toby Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to install and use PyPy for our virtual environment.
parent
b4569349
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletions
+12
-1
playbooks/roles/edx_ansible/defaults/main.yml
+3
-0
playbooks/roles/edx_ansible/tasks/main.yml
+7
-0
playbooks/roles/edxapp/defaults/main.yml
+1
-0
playbooks/roles/edxapp/tasks/deploy.yml
+1
-1
No files found.
playbooks/roles/edx_ansible/defaults/main.yml
View file @
f716e9ba
...
...
@@ -20,7 +20,10 @@
EDX_ANSIBLE_DUMP_VARS
:
false
edxapp_pypy_ppa
:
"
ppa:pypy/ppa"
edx_ansible_debian_pkgs
:
-
pypy
-
python-pip
-
python-apt
-
libmysqlclient-dev
...
...
playbooks/roles/edx_ansible/tasks/main.yml
View file @
f716e9ba
...
...
@@ -45,6 +45,13 @@
tags
:
-
install:base
# adding pypy repo
-
name
:
add ppas for current versions of pypy
apt_repository
:
repo="{{ edxapp_pypy_ppa }}"
tags
:
-
install
-
install:base
-
name
:
install a bunch of system packages on which edx_ansible relies
apt
:
pkg={{','.join(edx_ansible_debian_pkgs)}} state=present update_cache=true
tags
:
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
f716e9ba
...
...
@@ -584,6 +584,7 @@ EDXAPP_SESSION_COOKIE_SECURE: false
edxapp_data_dir
:
"
{{
COMMON_DATA_DIR
}}/edxapp"
edxapp_app_dir
:
"
{{
COMMON_APP_DIR
}}/edxapp"
edxapp_log_dir
:
"
{{
COMMON_LOG_DIR
}}/edxapp"
edxapp_pypy_bin
:
"
/usr/lib/pypy/bin/pypy-c"
edxapp_venvs_dir
:
"
{{
edxapp_app_dir
}}/venvs"
edxapp_venv_dir
:
"
{{
edxapp_venvs_dir
}}/edxapp"
edxapp_venv_bin
:
"
{{
edxapp_venv_dir
}}/bin"
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
f716e9ba
...
...
@@ -177,7 +177,7 @@
-
name
:
Create the virtualenv to install the Python requirements
command
:
>
virtualenv {{ edxapp_venv_dir }}
virtualenv
--python={{ edxapp_pypy_bin }}
{{ edxapp_venv_dir }}
chdir={{ edxapp_code_dir }}
creates={{ edxapp_venv_dir }}/bin/pip
sudo_user
:
"
{{
edxapp_user
}}"
...
...
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