Install ius and swap git2u for git on RHEL systems 80/15980/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 24 Jun 2019 21:53:05 +0000 (14:53 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 24 Jun 2019 21:53:05 +0000 (14:53 -0700)
Some of our jobs are failing, or at least having issues, due to not
having a recent enough version of git on the CentOS systems. Updating
the base recommended tooling to include a newer version of git on RHEL
systems should resolve this problem.

Issue: RELENG-2143
Change-Id: I2c690c94d0602b8790e37432ba2e24671e8cccb3
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
tasks/main.yml
vars/RedHat.yaml

index 36c6844..663fafa 100644 (file)
   when: ansible_os_family == 'RedHat'
   become: true
 
+- name: Swap to git2u
+  block:
+    - name: Install yum-plugin-replace
+      yum: name=yum-plugin-replace state=present update_cache=yes
+    - name: Gather rpm package facts
+      package_facts:
+        manager: auto
+    - name: Replace git with git2u
+      command: yum replace -y git --replace-with git2u
+      when: ansible_facts.packages['git'] is defined
+  when: ansible_os_family == 'RedHat'
+  become: true
+
 - name: Install PlantUML
   block:
     - name: Create /opt/plantuml install directory
index 50f9eb3..3c36cb5 100644 (file)
@@ -2,6 +2,7 @@
 lf_recommended_tools_packages_distro:
   - fedora-packager
   - http://ftp.riken.jp/Linux/cern/centos/7/cern/x86_64/Packages/parallel-20150522-1.el7.cern.noarch.rpm
+  - https://centos7.iuscommunity.org/ius-release.rpm
   - nc
   - perl-Digest-SHA
   - perl-ExtUtils-MakeMaker