Avec un bon pip
This commit is contained in:
@@ -4,6 +4,34 @@
|
|||||||
SELinux for Redhat:
|
SELinux for Redhat:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: subscription-manager repos --enable=rhel-7-server-extras-rpms
|
- name: subscription-manager repos --enable=rhel-7-server-extras-rpms
|
||||||
|
|
||||||
|
Repo for PIP on RHEL:
|
||||||
|
cmd.run:
|
||||||
|
- name: subscription-manager repos --enable rhel-server-rhscl-7-rpms
|
||||||
|
|
||||||
|
Pipons le python:
|
||||||
|
pkg.installed:
|
||||||
|
{% if grains['osmajorrelease'] == 6 %}
|
||||||
|
- name: python27-pip
|
||||||
|
{% else %}
|
||||||
|
- pkgs:
|
||||||
|
- python27-python-pip
|
||||||
|
- scl-utils
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# 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 %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if grains['os'] == 'Debian' %}
|
{% if grains['os'] == 'Debian' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user