summaryrefslogtreecommitdiffstats
path: root/xci
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-07-25 17:18:23 +0100
committerMarkos Chandras <mchandras@suse.de>2017-08-17 10:06:44 +0000
commit448b3d7b1d7c79f902e6284f8ec4607357060272 (patch)
tree671f40254ba385e5408c8304f68c740cbd99569a /xci
parent6ccf0cee70808e7aa8ff9a7226d97d4fe1c1259f (diff)
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 <mchandras@suse.de>
Diffstat (limited to 'xci')
-rwxr-xr-xxci/xci-deploy.sh9
1 files changed, 9 insertions, 0 deletions
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.
#-------------------------------------------------------------------------------