I believe this script works for CentOS 7:

https://github.com/ronivay/XenOrchestraInstallerUpdater