Skip to content

Commit

Permalink
Merge pull request #926 from partounian/add-mariadb-10.2-ppa
Browse files Browse the repository at this point in the history
Add MariaDB 10.2 PPA
  • Loading branch information
swalkinshaw authored Dec 9, 2017
2 parents e0fee33 + 9d1bdad commit 2ef6679
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Add MariaDB 10.2 PPA ([#926](https://github.com/roots/trellis/pull/926))
* Switch from `.dev` to `.test` ([#923](https://github.com/roots/trellis/pull/923))

### 1.0.0-rc.2: November 13th, 2017
Expand Down
4 changes: 4 additions & 0 deletions roles/mariadb/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
mariadb_keyserver: keyserver.ubuntu.com
mariadb_keyserver_id: "0xF1656F24C74CD1D8"
mariadb_ppa: "deb [arch=amd64,i386,ppc64el] http://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu xenial main"

mariadb_client_package: mariadb-client
mariadb_server_package: mariadb-server

Expand Down
11 changes: 11 additions & 0 deletions roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
- block:
- name: Add MariaDB APT key
apt_key:
keyserver: "{{ mariadb_keyserver }}"
id: "{{ mariadb_keyserver_id }}"

- name: Add MariaDB PPA
apt_repository:
repo: "{{ mariadb_ppa }}"
update_cache: yes

- name: Install MySQL client
apt:
name: "{{ mariadb_client_package }}"
Expand Down

0 comments on commit 2ef6679

Please sign in to comment.