ctdb-tests: Switch local daemons to use new style configuration file
authorMartin Schwenke <martin@meltin.net>
Fri, 13 Apr 2018 09:25:56 +0000 (19:25 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 17 May 2018 02:04:32 +0000 (04:04 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash

index 17657069f13fd303316c09ff98686c47d30094d3..b3d0087888c7d3d59a6693a100b3eb473261e8a8 100644 (file)
@@ -140,14 +140,19 @@ setup_ctdb ()
                        rm -vf "${CTDB_BASE}/events.d/"*
                fi
 
-               cat >"${CTDB_BASE}/ctdbd.conf" <<EOF
-CTDB_RECOVERY_LOCK="${SIMPLE_TESTS_VAR_DIR}/rec.lock"
-CTDB_NODE_ADDRESS="${node_ip}"
-CTDB_LOGGING="file:${CTDB_BASE}/log.ctdb"
-CTDB_DEBUGLEVEL=INFO
-CTDB_DBDIR="${db_dir}/volatile"
-CTDB_DBDIR_PERSISTENT="${db_dir}/persistent"
-CTDB_DBDIR_STATE="${db_dir}/state"
+               cat >"${CTDB_BASE}/ctdb.conf" <<EOF
+[logging]
+       location = file:${CTDB_BASE}/log.ctdb
+       log level = INFO
+
+[cluster]
+       recovery lock = ${SIMPLE_TESTS_VAR_DIR}/rec.lock
+       node address = ${node_ip}
+
+[database]
+       volatile database directory = ${db_dir}/volatile
+       persistent database directory = ${db_dir}/persistent
+       state database directory = ${db_dir}/state
 EOF
        done
 }