mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
Generalize mysql and mariadb version based on container name
This way we can split db_engine and db_version and simplify tests. Also this is mandatory to use the matrix.db_engine_version as the image name for our services containers.
This commit is contained in:
parent
90266f1ad5
commit
b821db97c5
13 changed files with 158 additions and 190 deletions
|
@ -1,18 +1,5 @@
|
|||
dbdeployer_version: 1.64.0
|
||||
dbdeployer_home_dir: /opt/dbdeployer
|
||||
|
||||
---
|
||||
home_dir: "{{ playbook_dir }}/root"
|
||||
|
||||
mariadb_install: false
|
||||
|
||||
mysql_version: 8.0.22
|
||||
mariadb_version: 10.5.4
|
||||
|
||||
db_engine_version: mysql:8.0.22
|
||||
mysql_base_port: 3306
|
||||
|
||||
percona_client_package: >-
|
||||
{%- if mariadb_install -%}
|
||||
mariadb-client
|
||||
{%- else -%}
|
||||
percona-server-client-5.7
|
||||
{%- endif -%}
|
||||
python_packages: [pymysql == 0.9.3]
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
ansible.builtin.set_fact:
|
||||
connector_name: "{{ connector.name.0 }}"
|
||||
gateway_addr: "{{ ip_route_output.stdout }}"
|
||||
db_engine: "{{ db_engine_version | split(':') | first }}"
|
||||
db_version: "{{ db_engine_version | split(':') | last }}"
|
||||
|
||||
- name: "{{ role_name }} | setvars | Set Fact using above facts"
|
||||
ansible.builtin.set_fact:
|
||||
|
@ -26,3 +28,4 @@
|
|||
msg: >
|
||||
Connector name: {{ connector_name }},
|
||||
Connector version: {{ connector_ver }}
|
||||
db_engine: {{ db_engine }}
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
dbdeployer_install_dir: "{{ dbdeployer_home_dir }}/dbdeployer_{{ dbdeployer_version }}"
|
||||
dbdeployer_src: "https://github.com/datacharmer/dbdeployer/releases/download/v{{ dbdeployer_version }}/dbdeployer-{{ dbdeployer_version }}.linux.tar.gz"
|
||||
dbdeployer_installed_file: "{{ dbdeployer_home_dir }}/dbdeployer_installed"
|
||||
|
||||
dbdeployer_sandbox_download_dir: "{{ home_dir }}/downloads"
|
||||
dbdeployer_sandbox_binary_dir: "{{ home_dir }}/opt/mysql"
|
||||
dbdeployer_sandbox_home_dir: "{{ home_dir }}/sandboxes"
|
||||
|
||||
percona_mysql_packages:
|
||||
- "{{ percona_client_package }}"
|
||||
|
||||
python_packages: [pymysql == 0.9.3]
|
||||
|
||||
mysql_tarball: "mysql-{{ mysql_version }}-linux-glibc2.12-x86_64.tar.{{ mysql_compression_extension }}"
|
||||
mysql_src: "https://dev.mysql.com/get/Downloads/MySQL-{{ mysql_major_version }}/{{ mysql_tarball }}"
|
||||
mariadb_url_subdir: "linux"
|
||||
mariadb_tarball: "mariadb-{{ mariadb_version }}-{{ mariadb_url_subdir }}-x86_64.tar.gz"
|
||||
mariadb_src: "https://downloads.mariadb.com/MariaDB/mariadb-{{ mariadb_version }}/bintar-{{ mariadb_url_subdir }}-x86_64/{{ mariadb_tarball }}"
|
Loading…
Add table
Add a link
Reference in a new issue