From 0b870a5d91b6c34b3ba09eb32ed2b6a77f1437a4 Mon Sep 17 00:00:00 2001 From: Simon Fayer Date: Wed, 10 Jul 2024 11:37:41 +0100 Subject: [PATCH] fix: Update CloudCE cloudinit.template for EL8+ --- .../Resources/Computing/cloudinit.template | 41 ++++--------------- 1 file changed, 7 insertions(+), 34 deletions(-) diff --git a/src/DIRAC/Resources/Computing/cloudinit.template b/src/DIRAC/Resources/Computing/cloudinit.template index b2d1d1e0496..63a099213d1 100644 --- a/src/DIRAC/Resources/Computing/cloudinit.template +++ b/src/DIRAC/Resources/Computing/cloudinit.template @@ -37,32 +37,6 @@ write_files: J0PnsV/1ZEJb1lDZ5/Y8EllkQGxdCNonJte8Pl/SoknqUdV3pkOeth7iwgv6rpv+wCS5sJD/Aabe /gbmX14A1QmGvGC8mIXg3b6V6xuRF60YLLD04RUNa+lesX1Nv95aEp5Zr6vBM8iD2gcZ7tV/IH/c 52lA/hodxZL/zyL9CUAskc+3BgAA - - encoding: gz+b64 - path: /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 - content: | - H4sIAEFTZl0CA31VR67z6AHb6xRvmcCYsaxqBfgXn3rvfaduVau3089LDhACXJHghgT411+/oDlB - 0n9MwfwxPVqVmB+Fi35o1WCU/6p/QX4xL/V3+M+PMGym8LO//sb+fr1+/iXo3lOth+38NwT1lqTT - vLIlkkVzgHl54yc8tIkByWx64jNeDH7pkrRwfQMZ2RaPBoMiysdcxTR5gpmGDKewWpKm4Hpy5Df+ - zEjEAANmhNHuEmhVMkU4yguukUUftuaiW0HgNBtFdcEDTI7eQ00UfHq7U22hgw2DrKSjIUkil8I9 - 03S+ux2zgWEdOcHUaGnTDT4yIEkKOLyaCH+cTGjnQ/8qZz95bkn3rVi/L4kPsmJ2Ptbl9J5ccRF5 - Dz1H5n64xDMXAkWwMCS2SjdRB1aDGvcLlj6CwVXsrZSGRB376y3syRCNZhYEWAjbrJmNU8nrcUtg - 6Clh3RI/IoSbqWjDIef5PuHueqx9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Tbp942Kh88OGXseU6FoWPQzpi8RxiLi3aB - 9T7IusO/n4jCj35rypno2jfVcrecG+6dDSRLp968oShjaYISo9y+QnazMCTPpir8IqfTecQ+eIpC - e5X1hmVj5b99b0inDi9A/HipHcEef/5Afz65mUD/+w5OZ//PsfwDIDTlCX4GAAA= - path: /etc/cvmfs/default.local content: | CVMFS_CACHE_BASE=/mnt/cvmfs @@ -91,17 +65,13 @@ yum_repos: enabled: true gpgcheck: true gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CernVM - epel: - name: Extra Packages for Enterprise Linux 7 - $basearch - baseurl: http://download.fedoraproject.org/pub/epel/7/$basearch - mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch - failovermethod: priority - enabled: true - gpgcheck: true - gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 packages: - cvmfs + # EPEL isn't strictly required many more + - epel-release + # If you need any further packages that depend on EPEL, include + # "dnf install -y" statements in runcmd rather than listing them here runcmd: # Allow nested singularity @@ -118,6 +88,9 @@ runcmd: - [ chmod, 600, /mnt/proxy.pem ] - [ chown, "dirac:dirac", /mnt/proxy.pem ] - [ chown, -R, "dirac:dirac", /mnt/dirac/etc ] +# Start caching certificates directory from CVMFS +# Workaround for when local Stratum-1 is slow + - [ stat, /cvmfs/grid.cern.ch/etc/grid-security/certificates ] - [ ln, -s, /cvmfs/grid.cern.ch/etc/grid-security/certificates, /mnt/dirac/etc/grid-security/certificates ] - [ cp, /root/run_pilot.sh, /mnt/run_pilot.sh ] - [ cp, /root/startup.sh, /mnt/startup.sh ]