Add common functions to openstack deploy script