From: Andrew Grimberg Date: Thu, 14 Jun 2018 22:29:23 +0000 (-0700) Subject: EL7 systems should use git2u X-Git-Tag: v0.1.0~26 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=4d9e425a95d5e61072e2539555842cae91806c7b;p=releng%2Fcommon-packer.git 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 --- 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