I'm attempting to install MariaDB Server 5.5 in a diskless image using Redhat Enterprise 7.8.
The problem I am running into is having a single diskless image with a single /etc/my.cnf
being deployed to all the nodes, which then are all pointed to the same data directory on the shared NFS storage.
What I would like to do is somehow have the /etc/my.cnf
determine which node it is on and write to a different directory on the shared storage (i.e. datadir = /sharednfs/output/node1,2,3,4/mariadb
). Is this possible?
From what I researched it looks like the only way would be to setup a separate diskless image for each node. I'm unable to find any parameters in my.cnf
that would allow a hostname variable or something of the sort.