Has anyone ever found an elegant solution for this scenario ?
"3e976b85-d2a7-40d7-ac2b-b39059c37953": { "enabled": "1", "name": "PUB_DEBIAN_MIRROR", "type": "host", "proto": "", "interface": "", "counters": "0", "updatefreq": "", "content": "security.debian.org\ndeb.debian.org\ndebian.map.fastly.net\nmetadata.ftp-master.debian.org\n", "categories": "", "description": "Public Debian Mirror" },
Or any other solution I didn't think about, other than a regex that allows anything containing "mirror" ^^
I would recommend that you just set up a local mirror instead. That mirror can have internet access to sync and then everything else on your network can just pull their packages from it. That way none of them require any internet access. It will also reduce your bandwidth needs and provide faster updates.
...That's way to hackish IMO.
You're now moving the OP's challenge to, the outbound firewall rule, of this mirror box ;-), it still needs the same "Alias" magic (with resiliency aka connectivity to potential _all_ mirrors).
Yes, but depending on the requirements it might not to be limited as heavily. And it provides a centralized place of management.
Quote from: CJ on January 26, 2024, 06:13:01 pmYes, but depending on the requirements it might not to be limited as heavily. And it provides a centralized place of management.To be fair, I played with the idea of making local repo mirrors too, but setting those up for various RHEL flavors, Debian an Suse is quite a maintenance burden. Especially when I still need 3rd party remote repositories (epel, grafana...). I am not managing enough VMs to make this scenario happen.Anyway, since I can find the mirror lists, I now need to find a way to create aliases via api / cli.