I wanted to donate my setup script for on premise Odoo. It will install all of the dependencies, create and setup configure files, pull from github and install/start necessary services.
It has been tailored for odoo-enterprise, so if you are setting it up for odoo-community only, you'll need to do some modifications.
The project is kstallard/odoo-setup on github https://github.com/kstallard/odoo-setup
Please feel free to make suggestions or comments. I will try to answer any questions. I do not make any guarantees, but it should generally work.
I've been using it for Odoo 18
This assumes Cent OS 10 (CentOS Stream release 10 (Coughlan)). But you can use AlmaLinux as well. Come to think if it, anything RedHat might work. But this has been exensively tested on Cent OS 10. If using something else, you miliage may vary.