You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need possibilities to exclude certain channels from repo-sync when using spacewalk-repo-sync
Details
Several customers would like to have the capability to exclude certain channels/repos from daily repo-sync from the internet.
Often cases some channels/repos can't be synced anymore but still exist and needed in Uyuni/SUMA for downstream client systems. The daily repo-sync job fails at those channels and send notifications which are annoying for the admins.
bjin01
changed the title
xclude channels from spacewalk-repo-sync and or mgr-sync-refresh-default
Exclude channels from spacewalk-repo-sync and or mgr-sync-refresh-default
Oct 29, 2024
Short description
Need possibilities to exclude certain channels from repo-sync when using spacewalk-repo-sync
Details
Several customers would like to have the capability to exclude certain channels/repos from daily repo-sync from the internet.
Often cases some channels/repos can't be synced anymore but still exist and needed in Uyuni/SUMA for downstream client systems. The daily repo-sync job fails at those channels and send notifications which are annoying for the admins.
Suggestions - custom solution:
Tested on SUMA 5.0.1
https://github.com/bjin01/salt-sap-patching/blob/master/spacewalk-repo-sync.py
I added this feature into the spacewalk-repo-sync.py and uploaded it into my github repo.
It reads in a hard-coded config file
exclude_channels = '/etc/rhn/spacewalk-repo-sync/exclude.list'
in yaml.The list in dictionary key "exclude_channels" will be removed from the dictionary
d_ch_repo_sync
which is used in original spacewalk-repo-sync.py.The text was updated successfully, but these errors were encountered: