Re: autoinstall REPO priority ?
Stefan Schubert <[email protected]> Thu, 12 Feb 2015 09:47:47 +0100
| Newsgroups | gmane.linux.suse.autoinstall |
|---|---|
| Message-ID | <[email protected]> |
Am 11.02.2015 um 17:05 schrieb [email protected]: > > 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.scripts > > 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: [email protected] ------------------------------------------------------------------------------- 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: [email protected] To contact the owner, e-mail: [email protected]