]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add support for Precise when installing ansible 154/head
authorSébastien Han <sebastien.han@enovance.com>
Thu, 4 Dec 2014 11:04:20 +0000 (12:04 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Thu, 4 Dec 2014 11:04:20 +0000 (12:04 +0100)
Add support for precise and ppa.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
bootstrap-ansible.sh

index ab7df3117bc4bf5fb82b89dc0f889a92ebb19777..675097dff844551b3aa07b1104a69ae0ab92b300 100644 (file)
@@ -9,6 +9,7 @@ fi
 
 if [[ -x $(which lsb_release 2>/dev/null) ]]; then
   os_VENDOR=$(lsb_release -i -s)
+  os_VERSION=$(lsb_release -c -s)
   if [[ "Debian" =~ $os_VENDOR ]]; then
     apt-get update
     apt-get install python-pip python-dev git build-essential -y
@@ -18,9 +19,14 @@ if [[ -x $(which lsb_release 2>/dev/null) ]]; then
     make install
     mkdir /etc/ansible
   elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
-    apt-get install -y ansible
+    if [[ "precise" =~ $os_VERSION ]]; then
+      add-apt-repository ppa:rquillo/ansible
+      apt-get update
+      apt-get install -y ansible
+    else
+      apt-get install -y ansible
+    fi
   fi
 elif [[ -r /etc/redhat-release ]]; then
   yum install -y ansible
 fi
-