From 523487feb58aab192f2576493d22e04ffc493be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Tue, 13 Nov 2018 13:32:19 +0000 Subject: [PATCH] Upgrade PIP for RHEL --- softwares/docker-ce.sls | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/softwares/docker-ce.sls b/softwares/docker-ce.sls index 562e5b5..2321454 100644 --- a/softwares/docker-ce.sls +++ b/softwares/docker-ce.sls @@ -107,6 +107,23 @@ Lets start docker: cmd.run: - name: systemctl start docker + {% if grains['os'] == 'RedHat' %} +Upgrade pip: + cmd.run: + {% if grains['osmajorrelease'] == 7 %} + - name: "pip install --upgrade pip -i {{PIP_REPO_URL}} --trusted-host {{PIP_REPO_SERVER}}" + - env: + - LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64:$LD_LIBRARY_PATH + - PATH=/opt/rh/python27/root/usr/bin:$PATH + - PKG_CONFIG_PATH=/opt/rh/python27/root/usr/lib64/pkgconfig + - XDG_DATA_DIRS=/opt/rh/python27/root/usr/share:$XDG_DATA_DIRS + - X_SCLS='python27 ' + {% else %} + - name: "pip2.7 install --upgrade pip -i {{PIP_REPO_URL}} --trusted-host {{PIP_REPO_SERVER}}" + {% endif %} + - shell: /bin/bash + {% endif %} + Lets install docker with pip: pip.installed: - name: docker