Couldn't you just read riak.conf directly?