EL7 systems should use git2u 20/11320/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 14 Jun 2018 22:29:23 +0000 (15:29 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 14 Jun 2018 22:29:23 +0000 (15:29 -0700)
EL7 systems have a very ancient git installed. IUS provides an up to
date version that replaces the upstream version.

Issue: RELENG-987
Change-Id: I41a02037f4d5326ba64c05f081fc5f1aa8fd6e41
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
provision/baseline.yaml
provision/install-base-pkgs-RedHat.yaml

index 1d4f70e..ea2a56a 100644 (file)
         - 'install-base-pkgs-{{ansible_distribution}}.yaml'
         - 'install-base-pkgs-{{ansible_os_family}}.yaml'
 
+    - name: Switch to git2u
+      shell: yum -y replace git --replace-with git2u
+      when: ansible_os_family == 'RedHat'
+      become: yes
+
     - name: Allow jenkins user sudo access
       copy:
         dest: /etc/sudoers.d/89-jenkins-user-defaults
index fdbcc5b..d04019f 100644 (file)
@@ -7,7 +7,9 @@
     - '@base'
     - '@development'
     - yum-utils
+    - yum-plugin-replace
     - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+    - https://centos7.iuscommunity.org/ius-release.rpm
   loop_control:
     loop_var: pkg
   become: yes