Config.repo id and repository name

Hello guys,
I would like to have different values for the repo-id and name in the automatically generated config.repo file.
Which is the smoothest way to do that?

[myrepo-id]
name=myrepo-name
enabled=1
baseurl=example.com
gpgcheck=1
repo_gpgcheck=1

Thanks in advance!

Currently Pulp chooses the repo-id for you. There is an open issue to at least have Pulp ensure it chooses a valid repo-id: https://github.com/pulp/pulp_rpm/issues/2261

This issue has not received a lot of attention, but should be pretty straight forward to work on.

If you have a use case that goes beyond what the existing issue asks for, perhaps consider adding a comment describing your use case.

3 Likes

Hey Tobber,

There’s no way to do that (currently) - the file is generated dynamically when requested, and there aren’t any knobs to turn on how it’s done.

You can see the code that handles this here

You could open an RFE requesting this, and explain your use case.

1 Like

Posts that cross in the night - thanks for this @quba42 , I didn’t know about that issue.

1 Like