ctdb-scripts: Allow load_script_options() to specify an event script
authorMartin Schwenke <martin@meltin.net>
Wed, 4 Apr 2018 09:06:13 +0000 (19:06 +1000)
committerAmitay Isaacs <amitay@samba.org>
Sat, 12 May 2018 04:11:17 +0000 (06:11 +0200)
commit02444e5f479f2d9705de93006916d9cd1333f21c
treeda546a292f8d5fb802a4daa511fc759c8b407a55
parent00f35b7b0d0b341e2ef1c7f699f80bbf0e5dc3e0
ctdb-scripts: Allow load_script_options() to specify an event script

This allows other scripts to use the given options for a particular
event script.  One interesting example is that the ctdb_natgw tool
should look for configuration in events.d/11.natgw.options.

In the future this will be something like
events/failover/11.natgw.options, so require the component to be
specified even though it isn't yet used.

Test support is also updated.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions
ctdb/tests/eventscripts/scripts/local.sh