[opensuse-autoinstall] Problems with prompted IP values
Pardon what seems to me to be a very simple question -
I have saved some system configs for use by Autoyast however I need to
manually do so some editing to prompt for:
Nodename
IP address
IP mask
IP default gateway
The nodename is taking just fine. My default value for the mask is
falling in place but I'm not so sure a non default will take. The
other IP values of address and mask are not taking, It seems to be
caused by the node believing it is going to get it's IP via DHCP (that
is the active method after installation completes)
I've searched the official documentation as well as reading some other
folks primers on Autoyast but I am missing something. Could someone
look over this profile and help me find what I'm missing?
TIA
Eric
<?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>
on Monday 24 August 2009 Eric Rothweiler wrote:
I've searched the official documentation as well as reading some other folks primers on Autoyast but I am missing something. Could someone look over this profile and help me find what I'm missing?
your path is wrong:
<ask-list config:type="list"> <ask> <path>networking,dns,hostname</path> <question>Enter Hostname (server name)</question> <stage>initial</stage> <default>enter your hostname here</default> </ask>
that's correct
<ask> <path>networking,interfaces,interface,ipaddr</path> <question>Enter the primary IP Address:</question> <stage>initial</stage> <default>127.0.0.1</default> </ask>
that's wrong. <interfaces config:type="list"> is a list of <interface> elements. if you would just say (like you did): <path>networking,interfaces,interface,ipaddr</path> how should autoyast know which interface in the list of interfaces you mean? The first one? The second? The third? So you have to tell autoyast which element number in the list of <interfaces> you mean by: <path>networking,interfaces,0,ipaddr</path> if it's the first <interface> in the list of <interfaces> <path>networking,interfaces,2,ipaddr</path> if it's the third ... and so on ... In your case you only have one <interface> in that list so it's obviously "0" but I think you can see the point. btw, I don't know which version of SUSE Linux you use but <path> is deprecated with the latest versions and was replaced by <pathlist>. <path> still works but only because of compatibility code that might be removed in the future. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I will try to straighten this out and try it today (early morning on
the left side of the big pond :-)
Like I said, I'm sure it's something too simple. In my case I'm using
the Autoyast with SLES10 sp2. These servers will get OES2 placed on
top of most of them but since the OES2 config is relatively
straightforward I am leaving that portion manual. I very much
appreciate the patience of everyone on this list- everyone here is
wonderful!
Eric
On Tue, Aug 25, 2009 at 6:17 AM, Uwe Gansert
on Monday 24 August 2009 Eric Rothweiler wrote:
I've searched the official documentation as well as reading some other folks primers on Autoyast but I am missing something. Could someone look over this profile and help me find what I'm missing?
your path is wrong:
<ask-list config:type="list"> <ask> <path>networking,dns,hostname</path> <question>Enter Hostname (server name)</question> <stage>initial</stage> <default>enter your hostname here</default> </ask>
that's correct
<ask> <path>networking,interfaces,interface,ipaddr</path> <question>Enter the primary IP Address:</question> <stage>initial</stage> <default>127.0.0.1</default> </ask>
that's wrong. <interfaces config:type="list"> is a list of <interface> elements. if you would just say (like you did): <path>networking,interfaces,interface,ipaddr</path> how should autoyast know which interface in the list of interfaces you mean? The first one? The second? The third? So you have to tell autoyast which element number in the list of <interfaces> you mean by: <path>networking,interfaces,0,ipaddr</path> if it's the first <interface> in the list of <interfaces> <path>networking,interfaces,2,ipaddr</path> if it's the third ... and so on ...
In your case you only have one <interface> in that list so it's obviously "0" but I think you can see the point.
btw, I don't know which version of SUSE Linux you use but <path> is deprecated with the latest versions and was replaced by <pathlist>. <path> still works but only because of compatibility code that might be removed in the future.
-- ciao, Uwe Gansert
Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Eric Rothweiler
-
Uwe Gansert