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
edx
configuration
Commits
cce020ca
Commit
cce020ca
authored
8 years ago
by
Edward Zarecor
Committed by
Kevin Falcone
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ansible-bootstrap to work on 16.04
Update common to pull down the non-ppa python on 16.04
parent
da450eea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
+29
-8
playbooks/roles/common/tasks/main.yml
+3
-0
util/install/ansible-bootstrap.sh
+26
-8
No files found.
playbooks/roles/common/tasks/main.yml
View file @
cce020ca
...
...
@@ -63,6 +63,9 @@
ansible_distribution_release in common_custom_ppa_releases
-
name
:
Add custom edX PPA
# Ensure that we get a current version of Git and latest version of python 2.7
# GitHub requires version 1.7.10 or later
# https://help.github.com/articles/https-cloning-errors
apt_repository
:
repo
:
"
{{
COMMON_EDX_PPA
}}"
when
:
>
...
...
This diff is collapsed.
Click to expand it.
util/install/ansible-bootstrap.sh
View file @
cce020ca
...
...
@@ -44,7 +44,7 @@ PYTHON_BIN="${VIRTUAL_ENV}/bin"
ANSIBLE_DIR
=
"/tmp/ansible"
CONFIGURATION_DIR
=
"/tmp/configuration"
EDX_PPA
=
"deb http://ppa.edx.org precise main"
EDX_PPA_KEY_SERVER
=
"
pgp.mit.edu
"
EDX_PPA_KEY_SERVER
=
"
hkp://pgp.mit.edu:80
"
EDX_PPA_KEY_ID
=
"69464050"
cat
<<
EOF
...
...
@@ -72,10 +72,13 @@ then
elif
grep
-q
'Trusty Tahr'
/etc/os-release
then
SHORT_DIST
=
"trusty"
elif
grep
-q
'Xenial Xerus'
/etc/os-release
then
SHORT_DIST
=
"xenial"
else
cat
<<
EOF
This script is only known to work on Ubuntu Precise
and Trusty
,
This script is only known to work on Ubuntu Precise
, Trusty and Xenial
,
exiting. If you are interested in helping make installation possible
on other platforms, let us know.
...
...
@@ -93,24 +96,39 @@ if [ "${UPGRADE_OS}" = true ]; then
echo
"Upgrading the OS..."
apt-get upgrade
-y
fi
# Required for add-apt-repository
apt-get install
-y
software-properties-common python-software-properties
# Add git PPA
add-apt-repository
-y
ppa:git-core/ppa
# Add python PPA
apt-key adv
--keyserver
"
${
EDX_PPA_KEY_SERVER
}
"
--recv-keys
"
${
EDX_PPA_KEY_ID
}
"
add-apt-repository
-y
"
${
EDX_PPA
}
"
# For older distributions we need to install a PPA for Python 2.7.10
if
[[
"precise"
=
"
${
SHORT_DIST
}
"
||
"trusty"
=
"
${
SHORT_DIST
}
"
]]
;
then
# Add python PPA
apt-key adv
--keyserver
"
${
EDX_PPA_KEY_SERVER
}
"
--recv-keys
"
${
EDX_PPA_KEY_ID
}
"
add-apt-repository
-y
"
${
EDX_PPA
}
"
fi
# Install python 2.7 latest, git and other common requirements
# NOTE: This will install the latest version of python 2.7 and
# which may differ from what is pinned in virtualenvironments
apt-get update
-y
apt-get install
-y
build-essential
sudo
git-core python2.7 python2.7-dev python-pip python-apt python-yaml python-jinja2 libmysqlclient-dev
pip install
--upgrade
pip
==
"
${
PIP_VERSION
}
"
apt-get install
-y
python2.7 python2.7-dev python-pip python-apt python-yaml python-jinja2 build-essential
sudo
git-core libmysqlclient-dev
# Workaround for a 16.04 bug, need to upgrade to latest and then
# potentially downgrade to the preferred version.
if
[[
"xenial"
=
"
${
SHORT_DIST
}
"
]]
;
then
#apt-get install -y python2.7 python2.7-dev python-pip python-apt python-yaml python-jinja2
pip install
--upgrade
pip
pip install
--upgrade
pip
==
"
${
PIP_VERSION
}
"
#apt-get install -y build-essential sudo git-core libmysqlclient-dev
else
#apt-get install -y python2.7 python2.7-dev python-pip python-apt python-yaml python-jinja2 build-essential sudo git-core libmysqlclient-dev
pip install
--upgrade
pip
==
"
${
PIP_VERSION
}
"
fi
# pip moves to /usr/local/bin when upgraded
PATH
=
/usr/local/bin:
${
PATH
}
...
...
This diff is collapsed.
Click to expand it.
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