@@ -29,13 +29,15 @@ export LANG=en_US.utf8
2929microdnf -y --nodocs install wget sudo shadow-utils procps tar tzdata make gcc \
3030 openssl-devel bzip2-devel libffi-devel findutils
3131# Patch security updates
32- microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2 tzdata nettle
32+ microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2 tzdata nettle libpwquality
3333
3434# Install Python and necessary packages
3535PY_SHORT=${PYTHON_VERSION% .* }
3636wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION} /Python-${PYTHON_VERSION} .tgz
3737wget -O /tmp/Python-gpg-sig-${PYTHON_VERSION} .tgz.asc https://www.python.org/ftp/python/${PYTHON_VERSION} /Python-${PYTHON_VERSION} .tgz.asc
38- gpg --keyserver pool.sks-keyservers.net --recv-keys $PYTHON_GPG_KEY_ID
38+ gpg --keyserver pool.sks-keyservers.net --recv-keys $PYTHON_GPG_KEY_ID \
39+ || gpg --keyserver pgp.mit.edu --recv-keys $PYTHON_GPG_KEY_ID \
40+ || gpg --keyserver keyserver.pgp.com --recv-keys $PYTHON_GPG_KEY_ID
3941gpg --verify /tmp/Python-gpg-sig-${PYTHON_VERSION} .tgz.asc /tmp/python.tgz
4042rm /tmp/Python-gpg-sig-${PYTHON_VERSION} .tgz.asc
4143mkdir -p /tmp/pyinstall
@@ -49,7 +51,7 @@ ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
4951ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
5052# Install splunk-ansible dependencies
5153cd /
52- pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
54+ pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible==3.4.0 jmespath --upgrade
5355# Remove tests packaged in python libs
5456find /usr/lib/ -depth \( -type d -a -not -wholename ' */ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf ' {}' \;
5557find /usr/lib/ -depth \( -type f -a -name ' *.pyc' -o -name ' *.pyo' -o -name ' *.a' \) -exec rm -rf ' {}' \;
@@ -58,7 +60,7 @@ ldconfig
5860
5961microdnf remove -y make gcc openssl-devel bzip2-devel libffi-devel findutils cpp binutils \
6062 glibc-devel keyutils-libs-devel krb5-devel libcom_err-devel libselinux-devel \
61- libsepol-devel libverto-devel libxcrypt-devel pcre2-devel zlib-devel cracklib-dicts
63+ libsepol-devel libverto-devel libxcrypt-devel pcre2-devel zlib-devel
6264microdnf clean all
6365
6466# Install scloud
0 commit comments