Skip to content

Commit

Permalink
Merge branch 'mrlesmithjr:master' into upstreaming
Browse files Browse the repository at this point in the history
  • Loading branch information
andanotheruser committed Oct 24, 2024
2 parents b15cde4 + a83a130 commit 6fb25ae
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 47 deletions.
63 changes: 29 additions & 34 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,4 @@
become: true
when: mariadb_config_overrides is defined

- name: debian | installing mariadb-galera packages
ansible.builtin.apt:
name: "{{ (galera_sst_method == 'mariabackup') | ternary( mariadb_packages | union( mariabackup_packages ), mariadb_packages ) }}"
state: "present"
become: true
- ansible.builtin.import_tasks: mariadb_packages_install.yml
7 changes: 7 additions & 0 deletions tasks/mariadb_packages_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: mariadb_packages_install | installing mariadb-galera packages
ansible.builtin.package:
name: "{{ (galera_sst_method == 'mariabackup') | ternary( mariadb_packages | union( mariabackup_packages ), mariadb_packages ) }}"
state: "{{ mariadb_upgrade | ternary( 'latest', 'present' ) }}"
update_cache: true
become: true
7 changes: 1 addition & 6 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@
become: true
when: mariadb_config_overrides is defined

- name: redhat | installing mariadb mysql
ansible.builtin.yum:
name: "{{ (galera_sst_method == 'mariabackup') | ternary( mariadb_packages | union( mariabackup_packages ), mariadb_packages ) }}"
state: "present"
update_cache: true
become: true
- ansible.builtin.import_tasks: mariadb_packages_install.yml

- name: redhat | remove migrated-from-my.cnf-settings.conf that is causing MariaDB to not start
ansible.builtin.file:
Expand Down
3 changes: 1 addition & 2 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# vars file for ansible-mariadb-galera-cluster

galera_cluster_nodes: "{% set _galera_cluster_nodes = [] %}{% for host in groups[ galera_cluster_nodes_group ] %}{{ _galera_cluster_nodes.append( host ) }}{% endfor
%}{{ _galera_cluster_nodes }}"
galera_cluster_nodes: "{% set _galera_cluster_nodes = [] %}{% for host in groups[ galera_cluster_nodes_group ] %}{{ _galera_cluster_nodes.append( host ) }}{% endfor %}{{ _galera_cluster_nodes }}"

0 comments on commit 6fb25ae

Please sign in to comment.