-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mysql 8.4 #718
Draft
greedybro
wants to merge
1
commit into
main
Choose a base branch
from
mysql/add_8_4
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+822
−358
Draft
Mysql 8.4 #718
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Template file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
|
||
package: | ||
mysql-server: | ||
installed: false | ||
mysql-client: | ||
installed: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
|
||
file: | ||
{{ tests_dir }}/dict: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
[mysqld] | ||
bind-address = 1.2.3.4 | ||
pid-file = /var/run/mysqld/mysqld.pid | ||
{{ tests_dir }}/content: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Content | ||
{{ tests_dir }}/template: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
--- | ||
|
||
file: | ||
|
||
# Default - Dict | ||
{{ tests_dir }}/default/dict: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
[mysqld] | ||
enforce_gtid_consistency = OFF | ||
gtid_mode = ON | ||
query_cache_size = 0 | ||
user = mysql | ||
# Default - Content | ||
{{ tests_dir }}/default/content: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Content | ||
# Default - Template | ||
{{ tests_dir }}/default/template: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Template | ||
{{ tests_dir }}/default/template_file: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Template file | ||
# Default - Flatten | ||
{{ tests_dir }}/default/flatten: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
# Default - State | ||
{{ tests_dir }}/default/state_present_implicit: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
{{ tests_dir }}/default/state_present: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
{{ tests_dir }}/default/state_absent: | ||
exists: false | ||
{{ tests_dir }}/default/state_absent_existing: | ||
exists: false | ||
{{ tests_dir }}/default/state_ignore: | ||
exists: false | ||
{{ tests_dir }}/default/state_ignore_existing: | ||
exists: true | ||
filetype: file | ||
|
||
# Defaults | ||
{{ tests_dir }}/defaults/template: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Template | ||
{{ tests_dir }}/defaults/template_file: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Template file | ||
{{ tests_dir }}/defaults/template_overwrite: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
contents: | | ||
Template file | ||
|
||
# Exclusive | ||
{{ tests_dir }}/exclusive/existing: | ||
exists: false | ||
{{ tests_dir }}/exclusive/existing_present: | ||
exists: true | ||
filetype: file | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
{{ tests_dir }}/exclusive/existing_ignore: | ||
exists: false | ||
{{ tests_dir }}/exclusive/ignore: | ||
exists: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
|
||
file: | ||
{{ tests_dir }}/data: | ||
exists: true | ||
filetype: directory | ||
owner: mysql | ||
group: root | ||
mode: "0700" | ||
{{ tests_dir }}/data/ibdata1: | ||
exists: true | ||
filetype: file | ||
|
||
command: | ||
mysql -BNe "SELECT @@GLOBAL.datadir": | ||
exit-status: 0 | ||
stdout: | ||
- "{{ tests_dir }}/data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
|
||
file: | ||
{{ tests_dir }}/data: | ||
exists: true | ||
filetype: directory | ||
owner: mysql | ||
group: root | ||
mode: "0700" | ||
{{ tests_dir }}/data/ibdata1: | ||
exists: true | ||
filetype: file | ||
|
||
command: | ||
mysql -BNe "SELECT @@GLOBAL.datadir": | ||
exit-status: 0 | ||
stdout: | ||
- "{{ tests_dir }}/data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
|
||
command: | ||
mysql -u root --execute "show databases": | ||
exit-status: 0 | ||
stdout: | ||
- state_present | ||
- state_present_implicit | ||
- "!state_absent" | ||
- "!state_absent_existing" | ||
- "!state_ignored" | ||
- state_ignore_existing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
package: | ||
mysql-server: | ||
installed: true | ||
mysql-client: | ||
installed: true | ||
|
||
command: | ||
mysql --version: | ||
exit-status: 0 | ||
stdout: | ||
- "/mysql(.)*Ver 8.4/" | ||
mysql -u root --execute "select user from mysql.user": | ||
exit-status: 0 | ||
stdout: | ||
- foo | ||
mysqladmin --user=foo --password=foo ping: | ||
exit-status: 0 | ||
stdout: | ||
- "mysqld is alive" | ||
mysql -u root --execute "show databases": | ||
exit-status: 0 | ||
stdout: | ||
- foo | ||
|
||
service: | ||
mysql: | ||
enabled: true | ||
running: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
|
||
command: | ||
mysql -u root --execute "select user from mysql.user": | ||
exit-status: 0 | ||
stdout: | ||
- foo | ||
- baz | ||
- state_present | ||
- state_present_implicit | ||
- "!state_absent" | ||
- "!state_absent_existing" | ||
- "!state_ignored" | ||
- state_ignore_existing | ||
mysqladmin --user=foo --password=foo ping: | ||
exit-status: 0 | ||
stdout: | ||
- "mysqld is alive" | ||
mysqladmin --user=baz --password=baz ping: | ||
exit-status: 0 | ||
stdout: | ||
- "mysqld is alive" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
|
||
- name: Prepare | ||
tags: [always] | ||
hosts: | ||
- debian | ||
- "!debian.buster" | ||
tasks: | ||
- name: Apt | ||
ansible.builtin.import_role: | ||
name: manala.roles.apt | ||
vars: | ||
manala_apt_preferences: | ||
- mysql@mysql_8_4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
|
||
########### | ||
# Default # | ||
########### | ||
|
||
- name: Default | ||
tags: [default] | ||
hosts: | ||
- debian.bullseye | ||
- debian.bookworm | ||
tasks: | ||
- block: # noqa: name[missing] | ||
- name: Role | ||
ansible.builtin.import_role: | ||
name: manala.roles.mysql | ||
vars: | ||
manala_mysql_configs: | ||
# Use native authentication plugin | ||
- file: auth.cnf | ||
config: | ||
mysqld: | ||
mysql_native_password: 'ON' | ||
manala_mysql_install_packages: | ||
- galera-4 | ||
- galera-arbitrator-4 | ||
- mysql-wsrep-server | ||
- mysql-wsrep-client | ||
manala_mysql_users: | ||
- name: foo | ||
password: foo | ||
host: localhost | ||
priv: "*.*:ALL,GRANT" | ||
login_unix_socket: /var/run/mysqld/mysqld.sock | ||
- name: bar | ||
state: ignore | ||
login_unix_socket: /var/run/mysqld/mysqld.sock | ||
# Flatten | ||
- | ||
- name: baz | ||
password: baz | ||
host: localhost | ||
priv: "*.*:ALL,GRANT" | ||
login_unix_socket: /var/run/mysqld/mysqld.sock | ||
manala_mysql_databases: | ||
- name: foo | ||
login_unix_socket: /var/run/mysqld/mysqld.sock | ||
- name: bar | ||
state: ignore | ||
login_unix_socket: /var/run/mysqld/mysqld.sock | ||
# Flatten | ||
- | ||
- name: baz | ||
login_unix_socket: /var/run/mysqld/mysqld.sock | ||
always: | ||
- name: Goss | ||
ansible.builtin.command: | ||
cmd: goss --gossfile - validate | ||
stdin: "{{ lookup('ansible.builtin.template', 'goss/default.yaml.j2') }}" | ||
changed_when: false |
42 changes: 42 additions & 0 deletions
42
molecule/mysql.galera.4.21.mysql_wsrep.8.4.3/goss/default.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
|
||
package: | ||
galera-4: | ||
installed: true | ||
galera-arbitrator-4: | ||
installed: true | ||
mysql-wsrep-server: | ||
installed: true | ||
mysql-wsrep-client: | ||
installed: true | ||
|
||
command: | ||
mysql --version: | ||
exit-status: 0 | ||
stdout: | ||
- "/mysql(.)*Ver 8.4.3/" | ||
mysql -u root --execute "select user from mysql.user": | ||
exit-status: 0 | ||
stdout: | ||
- foo | ||
- "!bar" | ||
- baz | ||
mysqladmin --user=foo --password=foo ping: | ||
exit-status: 0 | ||
stdout: | ||
- "mysqld is alive" | ||
mysqladmin --user=baz --password=baz ping: | ||
exit-status: 0 | ||
stdout: | ||
- "mysqld is alive" | ||
mysql -u root --execute "show databases": | ||
exit-status: 0 | ||
stdout: | ||
- foo | ||
- "!bar" | ||
- baz | ||
|
||
service: | ||
mysql: | ||
enabled: true | ||
running: true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
|
||
- name: Prepare | ||
tags: [always] | ||
hosts: | ||
- debian.bullseye | ||
- debian.bookworm | ||
tasks: | ||
- name: Apt | ||
ansible.builtin.import_role: | ||
name: manala.roles.apt | ||
vars: | ||
manala_apt_preferences: | ||
- galera@galera_4_21 | ||
- mysql@mysql_wsrep_8_4_3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention,
python-mysqldb
n'existe que sur buster:Il faut aussi s'assurer des versions minimum requises pour
python3-mysqldb
et voir si ansible gère bien la présence des deux lib en même temps (est-ce qu'il ne va pas privilégier l'ancienne ? faut-il dès lors la supprimer ?)