samba-in-kubernetes / sambacc

A library and CLI tools for managing Samba servers in containers.
GNU General Public License v3.0
13 stars 16 forks source link

ctdb: nodes list command, wait for ctdb option #128

Closed phlogistonjohn closed 3 months ago

phlogistonjohn commented 4 months ago

Add a samba-container ctdb-list-nodes command that emits a "nodes file" content to the stdout of the process. Add hooks to set up a ctdb "nodes_cmd" config file option that tells ctdb to execute a command to fetch the nodes rather than read a file.

Also add a --wait-for=ctdb option to avoid starting certain services before ctdb is available and causing unnecessary container restarts.