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
c0f94f44
Commit
c0f94f44
authored
May 06, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1978 from edx/feanil/rm_custom_req_file
Feanil/rm custom req file
parents
20f043e5
8ef3400e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
38 deletions
+7
-38
CHANGELOG.md
+5
-1
playbooks/roles/edxapp/defaults/main.yml
+0
-12
playbooks/roles/edxapp/tasks/deploy.yml
+2
-25
No files found.
CHANGELOG.md
View file @
c0f94f44
-Role: edx-ansible
-
Role: edxapp
-
The edxapp role no longer uses checksums to bypass pip installs.
-
pip install will always run for all known requirements files.
-
Role: edx-ansible
-
`/edx/bin/update`
no longer runs the ansible command with
`--tags deploy`
-
Role: edxapp
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
c0f94f44
...
...
@@ -522,18 +522,6 @@ edxapp_sandbox_user: 'sandbox' # I think something about the codejail requires
# apparmor command
edxapp_aa_command
:
"
{%
if
EDXAPP_SANDBOX_ENFORCE
%}aa-enforce{%
else
%}aa-complain{%
endif
%}"
# Requirement files we explicitely
# check for changes before attempting
# to update the venv
edxapp_chksum_req_files
:
-
"
{{
pre_requirements_file
}}"
-
"
{{
post_requirements_file
}}"
-
"
{{
base_requirements_file
}}"
-
"
{{
custom_requirements_file
}}"
-
"
{{
paver_requirements_file
}}"
-
"
{{
sandbox_post_requirements
}}"
-
"
{{
sandbox_base_requirements
}}"
# all edxapp requirements files
edxapp_all_req_files
:
-
"
{{
pre_requirements_file
}}"
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
c0f94f44
...
...
@@ -60,20 +60,6 @@
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
register
:
edxapp_theme_checkout
-
name
:
create checksum for requirements, package.json and Gemfile
shell
:
>
/usr/bin/md5sum {{ " ".join(edxapp_chksum_req_files) }} 2>/dev/null > /var/tmp/edxapp.req.new
sudo_user
:
"
{{
edxapp_user
}}"
ignore_errors
:
true
-
stat
:
path=/var/tmp/edxapp.req.new
register
:
new
sudo_user
:
"
{{
edxapp_user
}}"
-
stat
:
path=/var/tmp/edxapp.req.installed
register
:
inst
sudo_user
:
"
{{
edxapp_user
}}"
# Substitute github mirror in all requirements files
# This is run on every single deploy
-
name
:
Updating requirement files for git mirror
...
...
@@ -129,7 +115,6 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
# Install the python modules into {{ edxapp_venv_dir }}
-
name
:
install python base-requirements
...
...
@@ -141,7 +126,6 @@
chdir={{ edxapp_code_dir }}
environment
:
"
{{
edxapp_environment
}}"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
# Install the python post requirements into {{ edxapp_venv_dir }}
-
name
:
install python post-requirements
...
...
@@ -152,7 +136,6 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
# Install the python paver requirements into {{ edxapp_venv_dir }}
-
name
:
install python paver-requirements
...
...
@@ -163,7 +146,6 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
# Install the python custom requirements into {{ edxapp_venv_dir }}
...
...
@@ -179,7 +161,7 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
when
:
custom_requirements.stat.exists
and new.stat.md5 != inst.stat.md5
when
:
custom_requirements.stat.exists
# Install the final python modules into {{ edxapp_venv_dir }}
-
name
:
install python post-post requirements
...
...
@@ -245,7 +227,7 @@
-
"
{{
sandbox_local_requirements
}}"
-
"
{{
sandbox_post_requirements
}}"
sudo_user
:
"
{{
edxapp_user
}}"
when
:
"
not
EDXAPP_PYTHON_SANDBOX
and
(not
inst.stat.exists
or
new.stat.md5
!=
inst.stat.md5)"
when
:
not EDXAPP_PYTHON_SANDBOX
# The next few tasks set up the python code sandbox
...
...
@@ -298,11 +280,6 @@
-
name
:
give other read permissions to the virtualenv
command
:
chmod -R o+r "{{ edxapp_venv_dir }}"
-
name
:
create checksum for installed requirements
shell
:
cp /var/tmp/edxapp.req.new /var/tmp/edxapp.req.installed
sudo_user
:
"
{{
edxapp_user
}}"
# https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726
# This is necessary for when syncdb is run and the django_openid_auth module is installed,
# not sure if this fix will ever get merged
...
...
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