Difference between revisions of "SUSE Manager/MultipleMirrorCredentials"

From MicroFocusInternationalWiki
Jump to: navigation, search
(SUSE Manager 2.1)
(Outdated information removed, links to documentation added)
Line 1: Line 1:
 
[[SUSE_Manager|SUSE Manager Main Page]]
 
[[SUSE_Manager|SUSE Manager Main Page]]
= SUSE Manager 3 =
 
  
SUSE Manager 3 supports SCC exclusively.
+
SUSE Manager 3 and beyond supports SCC exclusively.
  
SUSE Manager 3 allows to edit mirror credentials either via the web interface or via the XMLRPC API, just like SUSE Manager 2.1. See SUSE Manager's 2.1 SCC instructions.
+
SUSE Manager 3 allows to edit mirror credentials either via the web interface, via the mgr-sync commandline tool or via the XMLRPC API.
  
= SUSE Manager 2.1 =
+
All topics are covered in the official manuals:
  
SUSE Manager 2.1 supports both NCC and SCC, with a migration option from NCC to SCC.
+
* Web UI: https://www.suse.com/documentation/suse-manager-3/3.2/susemanager-reference/single-html/book.suma.reference.manual/book.suma.reference.manual.html#ref.webui.admin.wizard
 
+
* Command line: https://www.suse.com/documentation/suse-manager-3/3.2/susemanager-advanced-topics/html/book.suma.advanced.topics/suse.mgr.command.line.tools.html#syncing.suse.mgr.repositories.scc
== NCC ==
+
* XMLRPC API: https://www.suse.com/documentation/suse-manager-3/pdfdoc/susemanager_api_doc_color_en_32/susemanager_api_doc_color_en_32.pdf
 
+
See SUSE Manager's 1.7 instructions.
+
 
+
== SCC ==
+
 
+
SUSE Manager 2.1 with latest patches applied, and after a successful migration to SCC, allows you to edit mirror credentials within the web interface. It is also possible to edit mirror credentials via the XMLRPC API.
+
 
+
Please note that the SCC migration will remove any mirror credential data from rhn.conf.
+
 
+
== How to setup multiple mirror credentials? ==
+
 
+
Navigate to Admin -> Setup Wizard -> Mirror Credentials, to be able to add/remove/edit mirror credentials. Make sure that the primary mirror credentials (yellow asterisk) include the subscription for SUSE Manager itself.
+
 
+
= SUSE Manager 1.7 =
+
 
+
SUSE Manager 1.7 supports NCC exclusively.
+
 
+
In SUSE Manager 1.7 patched versions of spacewalk-backend and susemanager-tools can handle multiple mirror credentials.
+
 
+
== How to setup multiple mirror credentials? ==
+
 
+
Edit /etc/rhn/rhn.conf
+
 
+
You must edit /etc/rhn/rhn.conf and add your additional credentials:
+
 
+
  # this is what you currently have, don't change it
+
  server.susemanager.mirrcred_user = 111111
+
  server.susemanager.mirrcred_pass = secret
+
 
+
  # add a different set of credentials like this:
+
  server.susemanager.mirrcred_user_1 = 222222
+
  server.susemanager.mirrcred_pass_1 = secret
+
 
+
  # you can add as many different credentials as you like, by incrementing
+
  #  the suffix (mirrcred_user_#)
+
  server.susemanager.mirrcred_user_2 = 333333
+
  server.susemanager.mirrcred_pass_2 = secret
+
 
+
After you changed rhn.conf run
+
 
+
  mgr-ncc-sync --refresh
+
 
+
Now you should see a channel list created with the combination
+
of all mirror credentials, if you type "mgr-ncc-sync -l" .
+
 
+
The numbers appended to the mirrcred_* key must be
+
numbered consecutively.
+
 
+
If you have configured client registration forwarding, all clients
+
are registered against the company identified by "mirrcred_user".
+
 
+
== Notes ==
+
 
+
* This patch is backwards compatible with your currently installed channels. As long as you do not change your default credentials in the configuration file (mirrcred_user/mirrcred_pass) everything should keep working.
+
 
+
* You can add as many sets of credentials as you like, but they all must be consecutive (i.e. mirrcred_user, mirrcred_user_1, mirrcred_user_2, etc.). If you skip one number, that is where mgr-ncc-sync will stop looking for more credentials (e.g., if mirrcred_user, mirrcred_user_1, mirrcred_user_3 are in the configuration file, only the first two credentials will be read).
+
 
+
* If you want to change credentials, you can do so in /etc/rhn/rhn.conf. If the previous credentials were used by one of your installed channels and the new credentials no longer provide access to that channel, connecting to NCC for that channel will no longer work. You must remove the channel, and then re-add it if you have access to that channel using a different set of credentials.
+
 
+
* You can use "spacewalk-remove-channel -c channel-x" to remove a channel and "mgr-ncc-sync -c channel-x" to add or re-add it.
+

Revision as of 06:15, 5 December 2018

SUSE Manager Main Page

SUSE Manager 3 and beyond supports SCC exclusively.

SUSE Manager 3 allows to edit mirror credentials either via the web interface, via the mgr-sync commandline tool or via the XMLRPC API.

All topics are covered in the official manuals:

* Web UI: https://www.suse.com/documentation/suse-manager-3/3.2/susemanager-reference/single-html/book.suma.reference.manual/book.suma.reference.manual.html#ref.webui.admin.wizard
* Command line: https://www.suse.com/documentation/suse-manager-3/3.2/susemanager-advanced-topics/html/book.suma.advanced.topics/suse.mgr.command.line.tools.html#syncing.suse.mgr.repositories.scc
* XMLRPC API: https://www.suse.com/documentation/suse-manager-3/pdfdoc/susemanager_api_doc_color_en_32/susemanager_api_doc_color_en_32.pdf