Skip to content

Commit

Permalink
Merge pull request #84 from idealista/develop
Browse files Browse the repository at this point in the history
Release 4.4.0
  • Loading branch information
blalop authored Feb 10, 2022
2 parents 6cf37ea + 9c618b3 commit 43b5ac3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).

## Unreleased

## [4.4.0](https://github.com/idealista/mysql_role/tree/4.4.0)
[Full Changelog](https://github.com/idealista/mysql_role/compare/4.3.0...4.4.0)
### Added
- [#82](https://github.com/idealista/mysql_role/issues/82) *Provide options to install non-default mysql versions* @blalop

## [4.3.0](https://github.com/idealista/mysql_role/tree/4.3.0)
[Full Changelog](https://github.com/idealista/mysql_role/compare/4.2.0...4.3.0)
### Fixed
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ mysql_users:
priv: [ example_DB.*:ALL ]
```
### Selecting a major release version
Major releases of MySQL can be selected using `mysql_server_version`. You can see the available options in the MySQL Debian mirror.

## Testing

```
Expand Down
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ mysql_flavour: mysql

mysql_version: 0.8.19-1

# If looking for an specific mysql version:
# mysql_server_version: mysql-5.7

mysql_oracle_gpg_keyserver: keyserver.ubuntu.com
mysql_oracle_gpg_key: 467B942D3A79BD29

Expand Down Expand Up @@ -36,7 +39,7 @@ mysql_service_state: started
mysql_config_file: /etc/mysql/my.cnf
mysql_pid_file: /var/run/mysqld/mysqld.pid
mysql_datadir: /var/lib/mysql
mysql_share_dir: /usr/share/mysql-8.0
mysql_share_dir: /usr/share/mysql-8.0 # /usr/share/mysql for mysql 5

# Allowing playbooks to provide external option files
mysql_extra_conf_include_dir: /etc/mysql/conf.d
Expand Down
8 changes: 8 additions & 0 deletions tasks/install_mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
pkg: "{{ mysql_required_libs }}"
state: present

- name: MySQL | Set MySQL server version
debconf:
name: mysql-apt-config
question: mysql-apt-config/select-server
vtype: select
value: "{{ mysql_server_version }}"
when: mysql_server_version is defined

- name: MySQL | Download MySQL config deb
get_url:
url: "{{ mysql_deb_repo }}"
Expand Down

0 comments on commit 43b5ac3

Please sign in to comment.