Giter Site home page Giter Site logo

Comments (5)

eRadical avatar eRadical commented on June 9, 2024

Hello @zaraquer,

You need to overwrite the value from defaults named galera_cluster_nodes_group and use there the actual name of the group where the galera cluster should be installed.

My galera cluster override file is something along these lines:

---
galera_cluster_bind_interface: 'eth0'  # make sure this interface exists in your servers
# yamllint disable-line rule:line-length
galera_cluster_name: 'clients_mariadb_gc_staging'  # this name should be under 32 chars or galera cluster will not start
galera_cluster_nodes_group: 'clients_mariadb_galera_cluster'  ## this is the most important one
mariadb_version: '10.6'
mariadb_mysql_root_password: "some-password"

from ansible-mariadb-galera-cluster.

zaraquer avatar zaraquer commented on June 9, 2024

Hi @eRadical !

Thanks for your comment!
I already named it after the group name in my inventory file.

Define the name of the cluster

galera_cluster_name: "galera-test"

Define Ansible group in which the nodes exist to be part of the cluster

galera_cluster_nodes_group: "mariadb"

Inventory file:
[mariadb]
mariadb1 ansible_host=xxx.xxx.xxx.51
mariadb2 ansible_host=xxx.xxx.xxx.52
mariadb3 ansible_host=xxx.xxx.xxx.53

[all:vars]
ansible_python_interpreter=/usr/bin/python3

from ansible-mariadb-galera-cluster.

eRadical avatar eRadical commented on June 9, 2024

@zaraquer - any progress on this?

Can you paste a file with ansible-playbook ran with "-vvvv" ?

from ansible-mariadb-galera-cluster.

zaraquer avatar zaraquer commented on June 9, 2024

@eRadical

Hi!

I figured out, there was a missing quote in the main.yml and needed to change some values. It seems it solved now.

from ansible-mariadb-galera-cluster.

eRadical avatar eRadical commented on June 9, 2024

Glad you sorted it out.

from ansible-mariadb-galera-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.