Prevent deactivation of 3rd party repositories by SUSE Manager
This document (000021406) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Manager 4.3
Situation
It means that every repository that is found in the respective repository directories will be disabled
unless they are not defined in the repository file "susemanager:channels.repo" (provided by SUSE Manager).
On a SUSE Linux Enterprise Server all repository definitions are located in /etc/zypp/repos.d.
On RedHat Enterprise Server ( and derivates ) repository definitions are located in /etc/yum.repos.d.
Deactivation of other repositories simply means that the parameter "enabled=1" is set to "enabled=0" in a repository file.
For example:
/etc/zypp/repos.d/test.repo: [Basesystem_Module_15_SP4_x86_64:SLE-Module-Basesystem15-SP4-Pool] name=SLE-Module-Basesystem15-SP4-Pool enabled=1 autorefresh=0 type=rpm-md service=Basesystem_Module_15_SP4_x86_64
is changed to:
/etc/zypp/repos.d/test.repo: [Basesystem_Module_15_SP4_x86_64:SLE-Module-Basesystem15-SP4-Pool] name=SLE-Module-Basesystem15-SP4-Pool enabled=0 autorefresh=0 type=rpm-md service=Basesystem_Module_15_SP4_x86_64
Resolution
1. Create "top.sls" in "/srv/pillar" with the following content:
base: '$MINION_ID': - no_disable_local_repos
Replace $MINION_ID with the ID of the desired minion. There are several ways of targeting minions. Please
consult the official salt documentation [1].
2. Set the following grain in "/srv/pillar/no_disable_local_repos.sls"
mgr_disable_local_repos: False
3. Deploy channel state on the salt minion
salt '$MINION_ID' state.apply channels
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021406
- Creation Date: 19-Mar-2024
- Modified Date:21-Mar-2024
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com