Hi,
> Is there some way to leverage these plugin:susecloud repos?
Your question is basically if you can use the SLE repos from
a registered SLE system to build an image with kiwi on that host
making use of that repos.
Yes you can do that but the repository definition should look
different. In my opinion the following should work:
<repository priority="98" username="NAME" password="CREDENTIALS">
<source path="SOURCE"/>
</repository>
This is the basic repo definition
Now on your system look at two places:
1. /etc/zypp/repos.d/Desktop_Applications_Module_aarch64:SLE-Module-Desktop-Applications15-SP2-Pool.repo
Take out the information that is listed in baseurl="SOURCE"
and fill in the gap of the repo definition
2. /etc/zypp/credentials.d/...
Look at this directory and search for "Desktop_Applications_Module_aarch64"
I'm not sure if it's a single file or part of a file. But you will
find credentials information for this module in this place.
Take out the credentials and fill in the gaps for
NAME and CREDENTIALS
This also binds the process to this host
Notes !:
* imageinclude is not a good idea, because the repos will only
work on this host and in your image you need a new subscription
registration process at some point
* If you build with kiwi you should put all <packages> into the
type="bootstrap" section and have no packages in the type="image"
section. The reason is that access to the repos will be handled
through the "susecloud" zypper plugin and this is not going to
work from within a chroot system. In a kiwi run the second
phsae of installing packages happens in the chroot(image-root)
and I expect problems if you do so when using this repos through
the "susecloud" plugin. If you put all packages in the bootstrap
section the install of packages will happen by the zypper call
in the first phase of the install process which is not chrooted
Overall, what you are doing is possible but comes with a price
to pay and some hurdles. There was some effort done in the "susecloud"
plugin and the way to access SLE repos to avoid abuse of them.
This makes it hard for kiwi to "just" consume them and as I wrote
it only works with a tight coupling to the already registered system.
From my opensource heart this makes things more complex that I
think they should be. But on the enterprise and the business world
this all makes sense.
The easiest way to access SLE repos for a kiwi build is:
1. Build in the open build service, yes you have access to SLES
on
build.opensuse.org. If you are interested in that part I
can give you an example
2. Create a local RMT server and point your kiwi build to it
https://documentation.suse.com/sles/15-SP1/single-html/SLES-rmt/
Hope all this helps to clarify the situation.
Regards,
Marcus
--
Public Key available via:
https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer (Res. & Dev.) SUSE Software Solutions Germany GmbH
Tel: 0911-740 53 0 Maxfeldstrasse 5
FAX: 0911-740 53 479 D-90409 Nürnberg
HRB: 21284 (AG Nürnberg) Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
http://www.suse.de
-------------------------------------------------------