From 448b3d7b1d7c79f902e6284f8ec4607357060272 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 25 Jul 2017 17:18:23 +0100 Subject: prototypes: xci: xci-deploy.sh: Only allow XCI on Ubuntu There is no support for openSUSE or CentOS right now yet the script runs happily on these hosts until it breaks in horrible ways. The only place we explicitly ask for Ubuntu hosts is the wiki which can easily be missed by newcomers. As such, modify the script to only run on Ubuntu hosts. Change-Id: If9b355da51367fc95948a2b12a7f6c4d6b3bbbbf Signed-off-by: Markos Chandras --- xci/xci-deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xci') diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index d7112565..9eda8ae8 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -63,6 +63,15 @@ echo "-------------------------------------------------------------------------" #------------------------------------------------------------------------------- source file/install-ansible.sh +# There is no CentOS or openSUSE support at all +if [[ $OS_FAMILY != Debian ]]; then + echo "" + echo "Error: Sorry, only Ubuntu hosts are supported for now!" + echo "Error: CentOS7 and openSUSE Leap support is still work in progress." + echo "" + exit 1 +fi + # TODO: The xci playbooks can be put into a playbook which will be done later. #------------------------------------------------------------------------------- -- cgit 1.2.3-korg