The equivalent code is already present homestead.root/usr/share/clearwater/infrastructure/scripts/homestead-prov