@@ -29,13 +29,15 @@ export LANG=en_US.utf8
29
29
microdnf -y --nodocs install wget sudo shadow-utils procps tar tzdata make gcc \
30
30
openssl-devel bzip2-devel libffi-devel findutils
31
31
# 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
33
33
34
34
# Install Python and necessary packages
35
35
PY_SHORT=${PYTHON_VERSION% .* }
36
36
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION} /Python-${PYTHON_VERSION} .tgz
37
37
wget -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
39
41
gpg --verify /tmp/Python-gpg-sig-${PYTHON_VERSION} .tgz.asc /tmp/python.tgz
40
42
rm /tmp/Python-gpg-sig-${PYTHON_VERSION} .tgz.asc
41
43
mkdir -p /tmp/pyinstall
@@ -49,7 +51,7 @@ ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
49
51
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
50
52
# Install splunk-ansible dependencies
51
53
cd /
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
53
55
# Remove tests packaged in python libs
54
56
find /usr/lib/ -depth \( -type d -a -not -wholename ' */ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf ' {}' \;
55
57
find /usr/lib/ -depth \( -type f -a -name ' *.pyc' -o -name ' *.pyo' -o -name ' *.a' \) -exec rm -rf ' {}' \;
@@ -58,7 +60,7 @@ ldconfig
58
60
59
61
microdnf remove -y make gcc openssl-devel bzip2-devel libffi-devel findutils cpp binutils \
60
62
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
62
64
microdnf clean all
63
65
64
66
# Install scloud
0 commit comments