[opensuse-autoinstall] Feature: Add <location> tag to <file_script> to get file script from remote location
Hi, I have a pretty long bash script as a <file_script>, modifying one of the files provided via <file>. I tried to move the script source out of the XML file by using a <location> tag instead of the <source> inside the <file_script>. But it looks like this is not supported yet...would be nice to have though! Best regards, J Brauchle
Hi Joschi, That one is working for me <!-- pts> <init-scripts config:type="list"> <listentry> <filename>post-inst.sh</filename> <interpreter>shell</interpreter> <location>http://<my_server>/scripts/post-inst.sh</location> </listentry> </init-scripts> </scr --s> Regards, Jochen
Joschi Brauchle 16.11.12 10.02 Uhr >>> Hi,
I have a pretty long bash script as a , modifying one of the files provided via . I tried to move the script source out of the XML file by using a tag instead of the inside the . But it looks like this is not supported yet...would be nice to have though! Best regards, J Brauchle -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hello Jochen, well, yes, your example is for a normal script, like an init/post/chroot script, right? There, the "location" tag exists and works nicely. But I would like to use a "location" tag inside a "file_script" tag, inside a "file" tag, like so: ----------- <files config:type="list"> <file> <file_path>##some filename###</file_path> <file_permissions>644</file_permissions> <file_owner>root:root</file_owner> <file_contents><![CDATA[ ### SOME FILE CONTENT ### ]]></file_contents> <file_script> <interpreter>shell</interpreter> <location>### remote URL -- This tag is not working ###</location> </file_script> </file> </files> ----------- This does not work for me... From the file XML schema, it looks like only "source" and "interpreter" are valid inside the "file_script" tag. Hence, my feature request. On 11/16/2012 10:33 AM, Jochen Schaefer wrote:
Hi Joschi,
That one is working for me
<!-- pts> <init-scripts config:type="list"> <listentry> <filename>post-inst.sh</filename> <interpreter>shell</interpreter> <location>http://<my_server>/scripts/post-inst.sh</location> </listentry> </init-scripts> </scr --s>
Regards, Jochen
Joschi Brauchle 16.11.12 10.02 Uhr >>> Hi,
I have a pretty long bash script as a , modifying one of the files provided via .
I tried to move the script source out of the XML file by using a tag instead of the inside the . But it looks like this is not supported yet...would be nice to have though!
Best regards, J Brauchle
-- Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
Hi, On Fri, Nov 16, Joschi Brauchle wrote:
well, yes, your example is for a normal script, like an init/post/chroot script, right? There, the "location" tag exists and works nicely.
But I would like to use a "location" tag inside a "file_script" tag, inside a "file" tag, like so: ----------- <files config:type="list"> <file> <file_path>##some filename###</file_path> <file_permissions>644</file_permissions> <file_owner>root:root</file_owner> <file_contents><![CDATA[ ### SOME FILE CONTENT ### ]]></file_contents> <file_script> <interpreter>shell</interpreter> <location>### remote URL -- This tag is not working ###</location> </file_script> </file> </files> -----------
This does not work for me...
From the file XML schema, it looks like only "source" and "interpreter" are valid inside the "file_script" tag. Hence, my feature request.
I will have a look after I am back from vacation. Should not be too hard to implement. Tschuess, Thomas Fehr -- Thomas Fehr, SuSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: fehr@suse.de GPG public key available. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 11/16/2012 06:44 PM, Thomas Fehr wrote:
On Fri, Nov 16, Joschi Brauchle wrote:
<location>### remote URL -- This tag is not working ###</location> From the file XML schema, it looks like only "source" and "interpreter" are valid inside the "file_script" tag. Hence, my feature request.
I will have a look after I am back from vacation. Should not be too hard to implement.
Is this really safe? It should be either used on trusted networks or using some secure connection (HTTPS, FTPS) but then it again might be problem with (commonly used) self-signed certificates. Bye Lukas -- Lukas Ocilka, Cloud & Systems Management Department SUSE LINUX s.r.o., Praha -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 11/19/2012 10:32 AM, Lukas Ocilka wrote:
On 11/16/2012 06:44 PM, Thomas Fehr wrote:
On Fri, Nov 16, Joschi Brauchle wrote:
<location>### remote URL -- This tag is not working ###</location> From the file XML schema, it looks like only "source" and "interpreter" are valid inside the "file_script" tag. Hence, my feature request.
I will have a look after I am back from vacation. Should not be too hard to implement.
Is this really safe? It should be either used on trusted networks or using some secure connection (HTTPS, FTPS) but then it again might be problem with (commonly used) self-signed certificates.
Yes, one should only use this on trusted networks. But, why should this be anymore safe/unsafe than the existing & working <location> tag for the init/chroot/... script sections?
On Fri, Nov 16, Thomas Fehr wrote:
From the file XML schema, it looks like only "source" and "interpreter" are valid inside the "file_script" tag. Hence, my feature request.
I will have a look after I am back from vacation. Should not be too hard to implement.
I finally found time to implement and test this. It will be supported starting with autoyast version 2.24.2. First distribution with this will be openSuSE 13.1 Tschuess, Thomas Fehr -- Thomas Fehr, SuSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: fehr@suse.de GPG public key available. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (4)
-
Jochen Schaefer
-
Joschi Brauchle
-
Lukas Ocilka
-
Thomas Fehr