Shell script `default/garbd-stack'

Install a full stack Galera Abritrator 3 on Ubuntu 16.04

clustermin install starting-stack clustermin install garbd clustermin run allow-mix-ip-from-cluster {% set nodeIps = '' %} {% for eachServer in cluster.servers if eachServer.location <= 255 %} {% set nodeIps = nodeIps ? nodeIps ~ ',' ~ eachServer.publicIp ~ ':4567' : eachServer.publicIp ~ ':4567' %} {% endfor %} cat <<EOF | sudo tee /etc/default/garb > /dev/null # Copyright (C) 2012 Codership Oy # This config file is to be sourced by garb service script. # A comma-separated list of node addresses (address[:port]) in the cluster GALERA_NODES="{{ nodeIps }}" # Galera cluster name, should be the same as on the rest of the nodes. GALERA_GROUP="clustermin_{{ cluster.id }}" # Optional Galera internal options string (e.g. SSL settings) # see http://galeracluster.com/documentation-webpages/galeraparameters.html # GALERA_OPTIONS="" # Log file for garbd. Optional, by default logs to syslog # LOG_FILE="/var/log/garbd.log" EOF sudo systemctl restart garb