🚀 Upstream management on molecule

dependabot/pip/requests-2.32.2
Emilien Mantel 2024-08-26 15:23:59 +02:00 committed by Emilien M
parent 9a79dd8d63
commit 5e26a65e8e
9 changed files with 41 additions and 4 deletions

View File

@ -69,7 +69,6 @@ mariadb_extra_configuration: {}
# -------------------------------------
mariadb_replication_master: false
mariadb_replication_slave: false
# This formula don't work with vagrant! All boxes have same default ip!
mariadb_server_id: "{{ ansible_default_ipv4.address | ipaddr('int') }}"
mariadb_replication_user: 'repl'
@ -117,7 +116,7 @@ mariadb_users: []
# MariaDB Upstream
# -------------------------------------
mariadb_upstream_setup_script: 'https://r.mariadb.com/downloads/mariadb_repo_setup'
mariadb_upstream_version: '10.6'
mariadb_upstream_version: '11.4'
# -------------------------------------
# Galera

View File

@ -25,9 +25,7 @@ provisioner:
connection:
pipelining: true
playbooks:
converge: ../_shared/converge.yml
prepare: ../_shared/prepare.yml
verify: ../_shared/verify.yml
inventory:
group_vars:
all:

View File

@ -6,3 +6,4 @@ mariadb_extra_configuration:
mariadb_install_xtrabackup_package: true
mariadb_slow_query_log_enabled: true
mariadb_debug_role: true
mariadb_innodb_buffer_pool_size: 128M

View File

@ -0,0 +1,4 @@
---
mariadb_version: '11.2'
mariadb_origin: 'upstream'

View File

@ -0,0 +1,9 @@
---
- name: Converge
hosts: all
gather_facts: true
tasks:
- name: Include role
ansible.builtin.include_role:
name: "hanxhx.mysql"

View File

@ -0,0 +1,15 @@
---
platforms:
- name: debian12-upstream1
image: dokken/debian-12
command: /lib/systemd/systemd
dockerfile: ../_shared/Dockerfile.j2
capabilities:
- SYS_ADMIN
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
privileged: true
groups:
- upstream

View File

@ -0,0 +1,11 @@
---
- name: Verify slave
hosts: all
gather_facts: false
tasks:
- name: COMMAND | Check if mariadb is running
ansible.builtin.command: "systemctl is-active mariadb"
register: mariadb_is_running
changed_when: false
failed_when: mariadb_is_running.rc != 0