Difference between revisions of "SUSE Manager/MultipleMirrorCredentials"

From MicroFocusInternationalWiki
Jump to: navigation, search
(Created page with "# Adding multiple mirror credentials Newer versions of spacewalk-backend and susemanager-tools can handle multiple mirror credentials. ## Edit /etc/rhn/rhn.conf You must edi...")
 
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
# Adding multiple mirror credentials
+
[[SUSE_Manager|SUSE Manager Main Page]]
  
Newer versions of spacewalk-backend and susemanager-tools can handle multiple mirror credentials.
+
SUSE Manager 3 and later versions support SCC exclusively.
  
## Edit /etc/rhn/rhn.conf
+
SUSE Manager 3 allows to edit mirror credentials either via the web interface, via the mgr-sync commandline tool or via the XMLRPC API.
You must edit /etc/rhn/rhn.conf and add your additional credentials:
+
  
  # this is what you currently have, don't change it
+
All topics are covered in the official manuals:
  server.susemanager.mirrcred_user = 111111
+
  server.susemanager.mirrcred_pass = secret
+
  
  # add a different set of credentials like this:
+
* 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
  server.susemanager.mirrcred_user_1 = 222222
+
* 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
  server.susemanager.mirrcred_pass_1 = secret
+
* XMLRPC API: https://www.suse.com/documentation/suse-manager-3/pdfdoc/susemanager_api_doc_color_en_32/susemanager_api_doc_color_en_32.pdf
 
+
  # 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
+
 
+
Now you can run `mgr-ncc-sync -l` and see all the channels that your
+
credentials provide. Running `mgr-ncc-sync -c some-channel` will add the
+
new channel to the database and tie it to one set of credentials. Then
+
it will trigger syncing of that channel.
+
 
+
Notes:
+
 
+
* this patch is backwards compatible with your currently installed channels. As long as you don't change your default credentials in the config file (mirrcred_user/mirrcred_pass) everything should keep working.
+
 
+
* you can add as many sets of credentials as you like, but they must all be consecutive (i.e. mirrcred_user, mirrcred_user_1, mirrcred_user_2 etc.). If you skip one number, that's where mgr-ncc-sync will stop looking for more credentials (e.g. if the config file has mirrcred_user, mirrcred_user_1, mirrcred_user_3 only the first two redentials 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 need to remove the channel (and 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 (re-)add it.
+

Latest revision as of 07:55, 5 December 2018

SUSE Manager Main Page

SUSE Manager 3 and later versions support 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