]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix failing install-ansible test 474/head
authorFrançois Charlier <francois.charlier@enovance.com>
Mon, 11 Jan 2016 16:05:53 +0000 (17:05 +0100)
committerFrançois Charlier <francois.charlier@enovance.com>
Mon, 11 Jan 2016 16:05:53 +0000 (17:05 +0100)
Fix test for Red Hat Enterprise Server and add a default case.

install-ansible.sh

index 6e559e925d827828da3f3796785612209f5138c4..494226b78ad2478351201bf93e7eeaf2c613330b 100644 (file)
@@ -24,9 +24,14 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then
     add-apt-repository ppa:ansible/ansible
     apt-get update
     apt-get install -y ansible
-  else [[ "RedHatEnterpriseServer" =~ $os_VENDOR ]]; then
+  elif [[ "RedHatEnterpriseServer" =~ $os_VENDOR ]]; then
     rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
     yum install -y ansible
+  else
+    echo "Unsupported platform ${os_VENDOR}: ${os_VERSION}"
+    echo "Please send a pull-request or open an issue"
+    echo "on https://github.com/ceph/ceph-ansible/"
+    exit 1
   fi
 elif [[ -r /etc/redhat-release ]]; then
   rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm