I am trying to set up hostgroups with the ansible hostgroup module, however I don’t understand what I have to set as kickstart_repository if I want to use synced content. Whatever I use there, it never finds the repository:
"msg": "Found no results while searching for repositories with name=\"BaseOS_x86_64_os\""
BaseOS_x86_64_os is the label of the repository of the operating system chosen. It exists and it’s exactly the name I get offered in the GUI and which I can choose there (even though it’s ambiguous in the GUI, as it offers both Alma and CentOS repos even though I select only one operating system).
Expected outcome:
Successful configuration of the kickstart repository.
Foreman and Proxy versions:
Foreman 3.2.0, Katello 4.4.0.2 latest.
Ahhh… THAT name. Oh, god. Isn’t that extremely misleading, if you choose the label in the GUI but need to specify the name in the module? The label at least is guaranteed to be unique within a product but the name can be anything…
You mean the name? That is still not unique. If I name my baseos repository of alma and centos simply “baseos” it wouldn’t be unique.
And depending on how you search it may even become ambiguous. For instance, my content view “EL8” contains CentOS Stream 8 and Alma Linux 8 (and soon RHEL 8) repositories, because regardless which operating system is actually installed I want to provide them access to all the same additional products like docker, postgresql, etc.
So if the name of my CentOS Stream and AlmaLinux baseos repository was simply “baseos” there wouldn’t be way to distinguish them.
I am not saying it’s a good idea to name repositories of different products identically but it’s possible…
Yes. I know. That’s what I wrote before: the label must be unique within a product. The GUI seems to enforce the same for the name, too. Although, looking into the database at katello_root_repositories.name that can even be null which is weird…