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
0aa9bfa0
Commit
0aa9bfa0
authored
Feb 07, 2017
by
Ned Batchelder
Committed by
GitHub
Feb 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3673 from edx/nedbat/mysql-from-edx-ppa
Install MySQL 5.6 from an edX repo
parents
e4197b2c
6218350b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
28 deletions
+14
-28
playbooks/roles/common/tasks/main.yml
+8
-11
playbooks/roles/common_vars/defaults/main.yml
+3
-3
playbooks/roles/mysql/tasks/mysql.yml
+0
-7
util/install/ansible-bootstrap.sh
+3
-7
No files found.
playbooks/roles/common/tasks/main.yml
View file @
0aa9bfa0
...
@@ -52,25 +52,22 @@
...
@@ -52,25 +52,22 @@
when
:
ansible_distribution in common_debian_variants
when
:
ansible_distribution in common_debian_variants
# Ensure that we
get the latest version of python 2.7
# Ensure that we
can install old software if need be.
-
name
:
add edx ppa
apt key
-
name
:
Add edX PPA
apt key
apt_key
:
apt_key
:
id
:
"
{{
COMMON_EDX_PPA_KEY_ID
}}"
id
:
"
{{
COMMON_EDX_PPA_KEY_ID
}}"
keyserver
:
"
{{
COMMON_EDX_PPA_KEY_SERVER
}}"
keyserver
:
"
{{
COMMON_EDX_PPA_KEY_SERVER
}}"
state
:
"
present"
state
:
"
present"
when
:
>
when
:
>
ansible_distribution in common_debian_variants and
ansible_distribution in common_debian_variants
ansible_distribution_release in common_custom_ppa_releases
-
name
:
Add custom edX PPA
-
name
:
Add custom edX PPA
# Ensure that we get a current version of Git and latest version of python 2.7
# Ensure that we get the latest version of python 2.7
# GitHub requires version 1.7.10 or later
# MySQL 5.6 is from our own PPA: https://bugs.mysql.com/bug.php?id=84848
# https://help.github.com/articles/https-cloning-errors
apt_repository
:
apt_repository
:
repo
:
"
{{
COMMON_EDX_PPA
}}"
repo
:
"
{{
COMMON_EDX_PPA
}}"
when
:
>
when
:
>
ansible_distribution in common_debian_variants and
ansible_distribution in common_debian_variants
ansible_distribution_release in common_custom_ppa_releases
-
name
:
Install role-independent useful system packages
-
name
:
Install role-independent useful system packages
...
@@ -89,10 +86,10 @@
...
@@ -89,10 +86,10 @@
install_recommends
:
yes
install_recommends
:
yes
state
:
present
state
:
present
update_cache
:
yes
update_cache
:
yes
with_items
:
"
{{
common_custom
_debian_pkgs
}}"
with_items
:
"
{{
old_python
_debian_pkgs
}}"
when
:
>
when
:
>
ansible_distribution in common_debian_variants and
ansible_distribution in common_debian_variants and
ansible_distribution_release in
common_custom
_ppa_releases
ansible_distribution_release in
old_python
_ppa_releases
-
name
:
Install role-independent useful system packages
-
name
:
Install role-independent useful system packages
yum
:
yum
:
...
...
playbooks/roles/common_vars/defaults/main.yml
View file @
0aa9bfa0
...
@@ -119,7 +119,7 @@ common_debian_pkgs:
...
@@ -119,7 +119,7 @@ common_debian_pkgs:
-
python2.7-dev
-
python2.7-dev
# Packages that should be installed from our custom PPA, i.e. COMMON_EDX_PPA
# Packages that should be installed from our custom PPA, i.e. COMMON_EDX_PPA
common_custom
_debian_pkgs
:
old_python
_debian_pkgs
:
-
"
python2.7=2.7.10-0+{{
ansible_distribution_release
}}1"
-
"
python2.7=2.7.10-0+{{
ansible_distribution_release
}}1"
common_pip_pkgs
:
common_pip_pkgs
:
...
@@ -153,8 +153,8 @@ common_debian_variants:
...
@@ -153,8 +153,8 @@ common_debian_variants:
-
Ubuntu
-
Ubuntu
-
Debian
-
Debian
#
Only attempt to use our custom PPA for these releases
#
We only have to install old Python for these releases:
common_custom
_ppa_releases
:
old_python
_ppa_releases
:
-
precise
-
precise
-
trusty
-
trusty
...
...
playbooks/roles/mysql/tasks/mysql.yml
View file @
0aa9bfa0
...
@@ -49,13 +49,6 @@
...
@@ -49,13 +49,6 @@
update_cache
:
yes
update_cache
:
yes
when
:
ansible_distribution_release == 'precise'
when
:
ansible_distribution_release == 'precise'
# repo.mysql.com does not have 5.6 packages for xenial
-
name
:
Install MySQL from ondrej PPA
apt_repository
:
repo
:
"
ppa:ondrej/mysql-5.6"
update_cache
:
yes
when
:
ansible_distribution_release == 'xenial'
-
name
:
Install mysql-5.6 and dependencies
-
name
:
Install mysql-5.6 and dependencies
apt
:
apt
:
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
...
...
util/install/ansible-bootstrap.sh
View file @
0aa9bfa0
...
@@ -107,13 +107,9 @@ apt-get install -y software-properties-common python-software-properties
...
@@ -107,13 +107,9 @@ apt-get install -y software-properties-common python-software-properties
# Add git PPA
# Add git PPA
add-apt-repository
-y
ppa:git-core/ppa
add-apt-repository
-y
ppa:git-core/ppa
# For older distributions we need to install a PPA for Python 2.7.10
# For older software we need to install our own PPA.
if
[[
"precise"
=
"
${
SHORT_DIST
}
"
||
"trusty"
=
"
${
SHORT_DIST
}
"
]]
;
then
apt-key adv
--keyserver
"
${
EDX_PPA_KEY_SERVER
}
"
--recv-keys
"
${
EDX_PPA_KEY_ID
}
"
add-apt-repository
-y
"
${
EDX_PPA
}
"
# 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
# Install python 2.7 latest, git and other common requirements
# NOTE: This will install the latest version of python 2.7 and
# NOTE: This will install the latest version of python 2.7 and
...
...
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