salt provisioner: require local_state_tree
salt provisioner: tidy up and refactor into functions