-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathRedHat9.yaml
More file actions
23 lines (22 loc) · 806 Bytes
/
RedHat9.yaml
File metadata and controls
23 lines (22 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
# Workaround for GPG-KEY in SHA1 https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
apm-server::settings:
exec_prerequisites:
allow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT:SHA1'
unless: 'dnf info apm-server'
exec_postinstall:
disallow_sha1:
command: '/usr/bin/update-crypto-policies --set DEFAULT'
onlyif: '/usr/bin/update-crypto-policies --show | grep SHA1'
# Version 4 format
preinstall:
exec:
allow_sha1:
command: "/usr/bin/update-crypto-policies --set DEFAULT:SHA1"
unless: dnf info apm-server
postinstall:
exec:
disallow_sha1:
command: "/usr/bin/update-crypto-policies --set DEFAULT"
onlyif: "/usr/bin/update-crypto-policies --show | grep SHA1"