matthuo I am sorry the use of ext4 filesystem encryption is very bad documented and the most helpfull would be reading how to use fscryptctl. There is no script to automtic mount these ext4 encryption. I build some rather complicated ones for my self, but they are in no shape to give them away.
The most promising to automate is full disk or partion encrytion with luks and there is plenty of instructions out there how to do it.
With NBDE one can do full disk encryption bound to the nework where servers are to get the decrytion key from (that is over simplyfied), but for that i need at least to put clevis in LE, what i have not yet done. You need at least one tang backend server in the network to automatic decrypt at boot if the OS supports that.
RHEL 7 and 8 (and Clones like CentOS, AlmaLinux and Rocky Linux) do support NBDE and we use it at work.
Some links about the rather heavy topic of Network Bound Disk Encryption
Network-Bound Disk Encryption in Red Hat Linux 7 - Cybersecurity Insiders