provision.sh: add client and config functions