[opensuse-autoinstall] Setting environment variable for installation
Hi, I need to set an environment variable which should be present within the installation environment. Is there any cmd line option which can fulfill that? Thanks, Jochen -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 26 July 2011 Jochen Schaefer wrote:
I need to set an environment variable which should be present within the installation environment. Is there any cmd line option which can fulfill that?
actually every variable you pass on the command line to linuxrc ends as an environment variable. At least in yast but for some reason not on the shell on tty2 for example and not for the shell on tty1 either if you login via ssh. so if you do "autoyast=.... install=.... myvar=uwe" then you should get a variable $myvar Steffen, is it on purpose that the ttyX shells don't get the variable? -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "My Despair" by In Strict Confidence -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tue, 26 Jul 2011, Uwe Gansert wrote:
on Tuesday 26 July 2011 Jochen Schaefer wrote:
I need to set an environment variable which should be present within the installation environment. Is there any cmd line option which can fulfill that?
actually every variable you pass on the command line to linuxrc ends as an environment variable. At least in yast but for some reason not on the shell on tty2 for example and not for the shell on tty1 either if you login via ssh.
so if you do "autoyast=.... install=.... myvar=uwe" then you should get a variable $myvar
Steffen, is it on purpose that the ttyX shells don't get the variable?
Why should they get them? linuxrc passes them on to its childs. But sshd and terminal programs start with a clean environment. Steffen -- Give orange me give eat orange me eat orange give me eat orange give me you. (chimp Nim, using sign language) -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Given SLES11 SP1 (x32) Task: Trying to us an HTTPserver.xml file for installation and configuration of apache2 via $ yast /usr/share/YaST2/clients/ayast_setup.ycp setup filename=/root/HTTPserver.xml Problem: Getting: Error . Cannot adjust 'apache2' service during ayast run. Cause: The variable APACHE_MODULES does not contains all configured modules and is missing the defaults Example from /etc/sysconfig/apache2 ... APACHE_MODULES="suexec info rewrite vhost_alias php5 perl python" ... Thus even the log_config option is set it is not written to the /etc/sysconfig/apache2 file Its really looks for that the whole apache module is more or less broken. Is there any documentation about the syntax of the HTTP server xml configuration ? Note: yast clone_system doe not includes an apache configuration at all. Attachments: YAST LOG ... 2011-08-05 16:49:17 <1> tcservice3(18950) [YCP] clients/inst_autoconfigure.ycp:148 Writing configuration for http-server 2011-08-05 16:49:17 <1> tcservice3(18950) [YCP] clients/inst_autoconfigure.ycp:183 Calling auto client with: $["Listen":[$["PORT":"80"]], "hosts":[$["KEY":"/"], $["KEY":"main"]], "modules":[$["change":"enable", "default":"0", "name":"suexec"], $["change":"disable", "default":"1", "name":"actions"], $["change":"disable", "default":"1", "name":"auth_basic"], $["change":"disable", "default":"1", "name":"authn_file"], $["change":"disable", "default":"1", "name":"authz_user"], $["change":"disable", "default":"1", "name":"authz_groupfile"], $["change":"disable", "default":"1", "name":"cgi"], $["change":"disable", "default":"1", "name":"include"], $["change":"disable", "default":"1", "name":"negotiation"], $["change":"disable", "default":"1", "name":"setenvif"], $["change":"disable", "default":"1", "name":"status"], $["change":"disable", "default":"1", "name":"userdir"], $["change":"disable", "default":"1", "name":"asis"], $["change":"disable", "default":"1", "name":"imagemap"], $["change":"enable", "default":"0", "name":"info"], $["change":"enable", "default":"0", "name":"rewrite"], $["change":"enable", "default":"0", "name":"vhost_alias"], $["change":"enable", "default":"0", "name":"php5"], $["change":"enable", "default":"0", "name":"perl"], $["change":"enable", "default":"0", "name":"python"], $["change":"enable", "default":"0", "name":"log_config"]], "service":true, "version":"2.9"] 2011-08-05 16:49:17 <1> tcservice3(18950) [YCP] clients/inst_autoconfigure.ycp:40 current step: 18 2011-08-05 16:49:17 <1> tcservice3(18950) [wfm] Y2CCWFM.cc(createInLevel):148 Parsing finished 2011-08-05 16:49:17 <1> tcservice3(18950) [Interpreter] clients/http-server_auto.ycp:119 Calling YaST client http-server_auto (arguments: ["Write"]) 2011-08-05 16:49:17 <1> tcservice3(18950) [YCP] clients/http-server_auto.ycp:26 ---------------------------------------- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Friday 05 August 2011 Hans-Joachim Ehlers wrote:
Thus even the log_config option is set it is not written to the /etc/sysconfig/apache2 file Its really looks for that the whole apache module is more or less broken.
but yast2-http-server was installed?
Is there any documentation about the syntax of the HTTP server xml configuration ?
Note: yast clone_system doe not includes an apache configuration at all.
but you can use the UI start "yast2 autoyast" -> Network Services and press the "Clone" Botton. It should create valid XML If it does not work, please open a bugreport
clients/inst_autoconfigure.ycp:183 Calling auto client with:
okay, it was installed anyway, please try to clone and open a bugreport if the clone does not work -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "The Storm" by The Retrosic -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hi Given: - SLES11 SP1 (32bit) Task: Autoinstallation Problem: Default route will not be set in /var/sysconfig/network/route , /var/sysconfig/network/route is empty. Is is a know bug ? Tia Hajo -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Tasks: I build the autoinst.xml on sles11sp1 beforehand via a configuration file which merges all required xml files. Example: Autoinst.xml will be build with - tomcat.xml - std_usr.xml - apache.xml Where each xml file contains certain main sections. Tomcat.xml std_usr.xml apache.xml group group group users users http-server software scripts software users The merge process will lead to a final xml with following sections: autoinst.xml group http-server scripts software ( From apache.xml ) users software ( from tomcat.xml ) Thus the software section is not merged correctly and the whole process is useless. Note: * Depending of the order another section but not merged correctly * The merge command looks like: xsltproc \ --novalid \ --param with "'./input.xml'" \ --param replace "'false'" \ --param dontmerge "'partitioning'" \ --param dontmerge1 "'package'" \ --param dontmerge2 "'user'" \ --param dontmerge3 "'group'" \ --param dontmerge4 "'script'" \ --output ./out.xml \ merge.xslt \ ./base.xml Its looks like for me that the merge.xslt is not really able to merge the xml files correctly. So what is the difference during the processing of the rules.xml which does basically the same ? Answer is really needed since in the worst case i have to abandon the idée of building a final autoinst.xml out of smaller ones. Tia Hajo -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Wednesday 24 August 2011 Hans-Joachim Ehlers wrote:
Where each xml file contains certain main sections.
Tomcat.xml std_usr.xml apache.xml group group group users users http-server software scripts software users
make sure all XML files contain the elements in alphabetic order. please swap users and software inTomcat.xml -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Duck And Cover" by Eisenfunk -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (4)
-
Hans-Joachim Ehlers
-
Jochen Schaefer
-
Steffen Winterfeldt
-
Uwe Gansert