From 4d9e425a95d5e61072e2539555842cae91806c7b Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Thu, 14 Jun 2018 15:29:23 -0700 Subject: [PATCH] EL7 systems should use git2u 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 --- provision/baseline.yaml | 5 +++++ provision/install-base-pkgs-RedHat.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/provision/baseline.yaml b/provision/baseline.yaml index 1d4f70e..ea2a56a 100644 --- a/provision/baseline.yaml +++ b/provision/baseline.yaml @@ -12,6 +12,11 @@ - '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 diff --git a/provision/install-base-pkgs-RedHat.yaml b/provision/install-base-pkgs-RedHat.yaml index fdbcc5b..d04019f 100644 --- a/provision/install-base-pkgs-RedHat.yaml +++ b/provision/install-base-pkgs-RedHat.yaml @@ -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 -- 2.16.6