Re: [suse-autoinstall] Custom user scripts
Hello Frank,
Ralf Neugebauer wrote:
Hello,
I have got two questions about using custom user scripts:
1. Is it only possible to copy the configuration file into the xml file? I think it's more useful to write only the path and filename to a externel configuration file I want to copy to the new system. Is this possible?
Sorry I wrote my mail wrong. I want to know If I can do the above for <files conifg:type="list">-Tag's like complained in section 14. Adding complete configurations. There is nothing mentioned about something like <file contents>nfs://<ip>/sshd.cfg</file contents>. Is it possible or not?
2. Which interpreters are possible to use? Only shell and perl? Is it also possible to use python?
Can I use python or not in custom user script's section? Does it depents on the installion of python in the <software>-section before?
It's all explained here: http://www.suse.de/~nashif/autoinstall/9.1/html/createprofile.scripts.html
-- Thx for your help Ralf Neugebauer Fachhochschule Osnabrück Albrechstr. 30 49076 Osnabrück Tel. (0541) 969-3673 Fax. (0541) 969-3671 eMail R.Neugebauer@et.fh-osnabrueck.de
Ralf Neugebauer wrote:
Sorry I wrote my mail wrong. I want to know If I can do the above for <files conifg:type="list">-Tag's like complained in section 14. Adding complete configurations. There is nothing mentioned about something like <file contents>nfs://<ip>/sshd.cfg</file contents>. Is it possible or not?
Not this way, but you can use xml includes to include parts of the config into other xml files. I know I saw it short ago, but I don't find it anymore in the online docu. Maybe it was in one mail on the mailinglist. It was the normal way to include xml stuff... -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
Frank Steiner wrote:
Ralf Neugebauer wrote:
Sorry I wrote my mail wrong. I want to know If I can do the above for <files conifg:type="list">-Tag's like complained in section 14. Adding complete configurations. There is nothing mentioned about something like <file contents>nfs://<ip>/sshd.cfg</file contents>. Is it possible or not?
Not this way, but you can use xml includes to include parts of the config into other xml files. I know I saw it short ago, but I don't find it anymore in the online docu. Maybe it was in one mail on the mailinglist. It was the normal way to include xml stuff...
Hello Frank, I just searched all entries (subject lines) of the mailingslist in 2004. I found nothing about xml includes. I also try to find something in my xml books (I'm new to xml) and also found nothing about xml includes. In an advanced book I found something about xlinks to include xml's but this is not what you mean or? Could you tell me some more details? When do you read it in the mailinglist? Otherwise I justed started to write my own small template engine in python, that will do the stuff for me. But I think it more common to do it the right way. -- Mit freundlichen Grüßen Ralf Neugebauer Fachhochschule Osnabrück Albrechstr. 30 49076 Osnabrück Tel. (0541) 969-3673 Fax. (0541) 969-3671 eMail R.Neugebauer@et.fh-osnabrueck.de
participants (2)
-
Frank Steiner
-
Ralf Neugebauer