diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index edbf4ed..2464f2c 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -8,7 +8,7 @@ Add CA certs and generate host certificate runAsUser: 0 runAsGroup: 0 name: init-host-certs - image: "centos:7" + image: "almalinux:9" env: - name: AUTOCA_URL value: https://ci.dcache.org/ca @@ -17,23 +17,23 @@ Add CA certs and generate host certificate - -c args: - | - yum -q install -y openssl libtool-ltdl glibmm24 epel-release; - yum -q install -y fetch-crl; + dnf -y -q install openssl libtool-ltdl glibmm24 epel-release; + dnf -y install fetch-crl; rpm -i https://www.desy.de/~tigran/ca_dCacheORG-3.0-6.noarch.rpm; rpm -i https://linuxsoft.cern.ch/wlcg/centos7/x86_64/desy-voms-all-1.0.0-1.noarch.rpm; curl https://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo -o /etc/yum.repos.d/egi-trustanchors.repo - yum -y install ca_USERTrustRSACertificationAuthority \ + dnf -y install ca_USERTrustRSACertificationAuthority \ ca_ResearchandEducationTrustRSARootCA \ ca_GEANTeScienceSSLCA4 \ ca_USERTrustECCCertificationAuthority \ ca_GEANTeScienceSSLECCCA4 \ ca_GEANTTCSAuthenticationRSACA4B; - curl --silent https://raw.githubusercontent.com/kofemann/autoca/v1.0-py2/pyclient/autoca-client -o /tmp/autoca-client; + curl --silent https://raw.githubusercontent.com/kofemann/autoca/v1.0-py3/pyclient/autoca-client -o /tmp/autoca-client; chmod a+x /tmp/autoca-client; cd /etc/grid-security/; - /tmp/autoca-client -n ${AUTOCA_URL} {{ . }}; + python3 /tmp/autoca-client -n ${AUTOCA_URL} {{ . }}; chown 994:1000 *.pem; /usr/sbin/fetch-crl;