[opensuse-autoinstall] autoinstall REPO priority ?
hi I'm setting up a Opensuse autoyast profiles that I'll eventually use for populating Xen DomUs For various profiles I'll need different sets of add-on repositories. It's clear how to add the add-ons with medial_utl <add_on_products config:type="list"> <listentry> <media_url><![CDATA[http://download.opensuse.org/repositories/.../]]></media_url> But I can't seem to find how to set the repo PRIORITY for each added add-on. I can see the question being asked online since at least 2009. Back then it wasn't available but the dev used "yet" a few times ... I'm assuming enough time's passed. How do you set repo priority in autoyast? hanlon -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
I have had a look into the sources. As far I see, you can set "alias" (string) and "priority" (integer) too. It is on the same xml file level as the flags "media_url", "name".... Of course, it is not documented :-( Just give him a try :-) Greetings Stefan Schubert Am 10.02.2015 um 22:20 schrieb h15234@mailas.com:
hi
I'm setting up a Opensuse autoyast profiles that I'll eventually use for populating Xen DomUs
For various profiles I'll need different sets of add-on repositories.
It's clear how to add the add-ons with medial_utl
<add_on_products config:type="list"> <listentry> <media_url><![CDATA[http://download.opensuse.org/repositories/.../]]></media_url>
But I can't seem to find how to set the repo PRIORITY for each added add-on.
I can see the question being asked online since at least 2009. Back then it wasn't available but the dev used "yet" a few times ...
I'm assuming enough time's passed. How do you set repo priority in autoyast?
hanlon
-- ******************************************************************************* Stefan Schubert e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX GmbH GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Wed, Feb 11, 2015 at 9:03 AM, Stefan Schubert <schubi@suse.de> wrote:
I have had a look into the sources. As far I see, you can set "alias" (string) and "priority" (integer) too. It is on the same xml file level as the flags "media_url", "name".... Of course, it is not documented :-(
That's nice to know! h15234: Is this about 13.2? In 13.1 at least, there was a bug that if you added add-on repositories, the install would not finish. I'm currently seeing a similar problem for 13.2, though I can't tell yet if it's really the add-ons. (My install just halts at 27% package installing and then OOMs half an hour later.) -- Kind regards Christopher 'm4z' Holm / 686f6c6d "We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children smart." --H. L. Mencken -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Wed, Feb 11, 2015 at 9:03 AM, Stefan Schubert <schubi@suse.de> wrote:
I have had a look into the sources. As far I see, you can set "alias" (string) and "priority" (integer) too. It is on the same xml file level as the flags "media_url", "name".... Of course, it is not documented :-(
Thanks, that helps! On Wed, Feb 11, 2015, at 03:25 AM, 686f6c6d wrote:
h15234: Is this about 13.2? In 13.1 at least, there was a bug that if you added add-on repositories, the install would not finish. I'm currently seeing a similar problem for 13.2, though I can't tell yet if it's really the add-ons. (My install just halts at 27% package installing and then OOMs half an hour later.)
Yep, this is for 13.2. I think I'd read something about a bug like that. Haven't gotten far enough yet here to test the process. Hope it works when I get there. hanlon -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Am 11.02.2015 um 15:15 schrieb h15234@mailas.com:
On Wed, Feb 11, 2015 at 9:03 AM, Stefan Schubert <schubi@suse.de> wrote:
I have had a look into the sources. As far I see, you can set "alias" (string) and "priority" (integer) too. It is on the same xml file level as the flags "media_url", "name".... Of course, it is not documented :-( Thanks, that helps!
Thanks, I have update the documentation. Greetings Stefan -- ******************************************************************************* Stefan Schubert e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX GmbH GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Wed, Feb 11, 2015, at 07:24 AM, Stefan Schubert wrote:
Thanks, I have update the documentation.
Creating various autoyast profiles you can of course setup in the GUI. For one or a couple, the point & click is OK. For lots of machines+repos it's a pain. At least the way I'm doing it.
From each machine I want to model I can eaily get by SSH it's list of repos in XML format. For example
zypper -x lr <?xml version='1.0'?> <stream> <repo-list> <repo alias="Apache" name="Apache" type="rpm-md" priority="60" enabled="1" autorefresh="1" gpgcheck="1"> <url>http://download.opensuse.org/repositories/Apache/openSUSE_13.2/</url> </repo> </repo-list> </stream> To use that in AutoYast though, the XML needs to change format to autoyast XML <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <add-on> <add_on_products config:type="list"> <listentry> <alias>Apache</alias> <priority>60</priority> <media_url><![CDATA[http://download.opensuse.org/repositories/Apache/openSUSE_13.2/]]></media_url> <product/><product_dir/> </listentry> </add_on_products> </add-on> Is there a straightforward way to do the format conversion? And are ALL the parameters in zypper alias name type priority enabled autorefresh gpgcheck etc supported in AutoYast sources even though they're not documented? It'd be great to have an actual 1-to-1 mapping. Or better, the option to IMPORT a 'zypper lr' XML output file into AutoYast config. Or is there another, better way to get a machine's repo config easily and accurately into Autoyast? hanlon -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Am 11.02.2015 um 17:05 schrieb h15234@mailas.com:
On Wed, Feb 11, 2015, at 07:24 AM, Stefan Schubert wrote:
Thanks, I have update the documentation.
Creating various autoyast profiles you can of course setup in the GUI. For one or a couple, the point & click is OK.
For lots of machines+repos it's a pain. At least the way I'm doing it.
From each machine I want to model I can eaily get by SSH it's list of repos in XML format. For example
zypper -x lr <?xml version='1.0'?> <stream> <repo-list> <repo alias="Apache" name="Apache" type="rpm-md" priority="60" enabled="1" autorefresh="1" gpgcheck="1"> <url>http://download.opensuse.org/repositories/Apache/openSUSE_13.2/</url> </repo> </repo-list> </stream>
To use that in AutoYast though, the XML needs to change format to
autoyast XML <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <add-on> <add_on_products config:type="list"> <listentry> <alias>Apache</alias> <priority>60</priority> <media_url><![CDATA[http://download.opensuse.org/repositories/Apache/openSUSE_13.2/]]></media_url> <product/><product_dir/> </listentry> </add_on_products> </add-on>
Is there a straightforward way to do the format conversion?
No, currently not. AutoYaST has been invented about 8 years before zypper. :-)
And are ALL the parameters in zypper
alias name type priority enabled autorefresh gpgcheck etc
supported in AutoYast sources even though they're not documented?
No, only "alias" and "priority" have been missed. These both entries have been added by created libzypp/zypper. But you can change this settings by calling zypper directly in the AutoYaST installation scripts: http://doc.opensuse.org/projects/autoyast/configuration.html#createprofile.s...
It'd be great to have an actual 1-to-1 mapping. Or better, the option to IMPORT a 'zypper lr' XML output file into AutoYast config.
Currently it is not planed. Well, you will have to write it by your own. AND....we are really open for pull requests :-) Greetings Stefan -- ******************************************************************************* Stefan Schubert e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX GmbH GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
h15234@mailas.com wrote:
On Wed, Feb 11, 2015, at 07:24 AM, Stefan Schubert wrote:
Thanks, I have update the documentation.
Creating various autoyast profiles you can of course setup in the GUI. For one or a couple, the point & click is OK.
For lots of machines+repos it's a pain. At least the way I'm doing it.
From each machine I want to model I can eaily get by SSH it's list of repos in XML format. For example
zypper -x lr <?xml version='1.0'?> <stream> <repo-list> <repo alias="Apache" name="Apache" type="rpm-md" priority="60" enabled="1" autorefresh="1" gpgcheck="1">
<url>http://download.opensuse.org/repositories/Apache/openSUSE_13.2/</url>
</repo> </repo-list> </stream>
To use that in AutoYast though, the XML needs to change format to
autoyast XML <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <add-on> <add_on_products config:type="list"> <listentry> <alias>Apache</alias> <priority>60</priority> <media_url>< [CDATA[http://download.opensuse.org/repositories/Apache/openSUSE_13.2/]]></media_url> <product/><product_dir/> </listentry> </add_on_products> </add-on>
Is there a straightforward way to do the format conversion?
It would be pretty easy with xslt (if you are familiar with xslt of course). Write the stylesheet, then run xsltproc. -- Per Jessen, Zürich (2.4°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Wed, Feb 11, 2015 at 3:15 PM, <h15234@mailas.com> wrote:
On Wed, Feb 11, 2015, at 03:25 AM, 686f6c6d wrote:
h15234: Is this about 13.2? In 13.1 at least, there was a bug that if you added add-on repositories, the install would not finish. I'm currently seeing a similar problem for 13.2, though I can't tell yet if it's really the add-ons. (My install just halts at 27% package installing and then OOMs half an hour later.)
Yep, this is for 13.2.
I think I'd read something about a bug like that. Haven't gotten far enough yet here to test the process. Hope it works when I get there.
The problem probably is something else… A colleague has a working profile with add-on-repos for 13.2, so the problem is somewhere (else) in my profile. (I'll start over with a minimal profile.) -- Kind regards Christopher 'm4z' Holm / 686f6c6d "We must respect the other fellow's religion, but only in the sense and to the extent that we respect his theory that his wife is beautiful and his children smart." --H. L. Mencken -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (4)
-
686f6c6d
-
h15234@mailas.com
-
Per Jessen
-
Stefan Schubert