Problem:
Im not able to sync yum.foreman.com repository, it tells me:
Errors:
An invalid remote URL was provided: Index of /client/nightly/el9
I have tried multiple different URLs:
https://yum.puppet.com
https://yum.puppet.com/puppet
https://yum.puppet.com/puppet/el
https://yum.puppet.com/puppet/el/8
https://yum.theforeman.org/client/nightly/el9/
That last one is straight from the documentation mentioned below.
If im doing something wrong then i cant see it…
Expected outcome:
Sync the packages… The URL matches what is given in the documentation for ie. adding AlmaLinux yum repo.
Foreman and Proxy versions:
Foreman 3.0.11.el8
Foreman and Proxy plugin versions:
Distribution and version:
RHEL8.9
Other relevant data:
hammer repository info --id 2
Id: 2
Name: Puppet Agent YUM
Label: Puppet_Agent_YUM
Description: Puppet agent YUM repos
Organization: snip
Red Hat Repository: no
Content Type: yum
Content Label: snip_Puppet_Agent_Puppet_Agent_YUM
Mirroring Policy: Content Only
Url: https://yum.theforeman.org/client/nightly/el9/
Publish Via HTTP: yes
Published At: https://puppet/pulp/content/snip/Library/custom/Puppet_Agent/Puppet_Agent_YUM/
Relative Path: snip/Library/custom/Puppet_Agent/Puppet_Agent_YUM
Download Policy: on_demand
Ignorable Content Units:
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 1
Name: Puppet Agent
GPG Key:
Sync:
Status: Warning
Last Sync Date: 4 minutes
Created: 2024/03/19 14:32:52
Updated: 2024/03/20 13:41:29
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0
[root@puppet ~]# hammer repository sync --id 2
[...........................................................................................................................................................................................] [100%]
No content added.
Waiting to start.
--------------------------------
Error: An invalid remote URL was provided: https://yum.theforeman.org/client/nightly/el9/