#!/bin/sh
slonik << _END_
#
# Define cluster namespace and node connection information
#
cluster name = gb;
node 1 admin conninfo = 'dbname=gb host=localhost port=5434 user=postgres';
node 2 admin conninfo = 'dbname=gb host=localhost port=5430 user=postgres';
echo 'Cluster defined, nodes identified';

#
# Initialize the cluster and create the second node
#
init cluster (id=1, comment='gb 7.4 5434');
store node (id=2, comment='gb 8.0 5430');
echo 'Nodes defined';

#
# create paths
#
store path (server=1, client=2, conninfo='dbname=gb host=localhost port=5434 user=postgres');
store path (server=2, client=1, conninfo='dbname=gb host=localhost port=5430 user=postgres');


_END_

