🚀 Upstream management on molecule
parent
186a32d5ac
commit
a8f89f47b2
|
@ -69,7 +69,6 @@ mariadb_extra_configuration: {}
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
mariadb_replication_master: false
|
mariadb_replication_master: false
|
||||||
mariadb_replication_slave: 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_server_id: "{{ ansible_default_ipv4.address | ipaddr('int') }}"
|
||||||
|
|
||||||
mariadb_replication_user: 'repl'
|
mariadb_replication_user: 'repl'
|
||||||
|
@ -117,7 +116,7 @@ mariadb_users: []
|
||||||
# MariaDB Upstream
|
# MariaDB Upstream
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
mariadb_upstream_setup_script: 'https://r.mariadb.com/downloads/mariadb_repo_setup'
|
mariadb_upstream_setup_script: 'https://r.mariadb.com/downloads/mariadb_repo_setup'
|
||||||
mariadb_upstream_version: '10.6'
|
mariadb_upstream_version: '11.4'
|
||||||
|
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
# Galera
|
# Galera
|
||||||
|
|
|
@ -25,9 +25,7 @@ provisioner:
|
||||||
connection:
|
connection:
|
||||||
pipelining: true
|
pipelining: true
|
||||||
playbooks:
|
playbooks:
|
||||||
converge: ../_shared/converge.yml
|
|
||||||
prepare: ../_shared/prepare.yml
|
prepare: ../_shared/prepare.yml
|
||||||
verify: ../_shared/verify.yml
|
|
||||||
inventory:
|
inventory:
|
||||||
group_vars:
|
group_vars:
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -6,3 +6,4 @@ mariadb_extra_configuration:
|
||||||
mariadb_install_xtrabackup_package: true
|
mariadb_install_xtrabackup_package: true
|
||||||
mariadb_slow_query_log_enabled: true
|
mariadb_slow_query_log_enabled: true
|
||||||
mariadb_debug_role: true
|
mariadb_debug_role: true
|
||||||
|
mariadb_innodb_buffer_pool_size: 128M
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
mariadb_version: '11.2'
|
||||||
|
mariadb_origin: 'upstream'
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
tasks:
|
||||||
|
- name: Include role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: "hanxhx.mysql"
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue