Mailinglist Archive: opensuse-autoinstall (47 mails)

< Previous Next >
Svar: Re: [opensuse-autoinstall] How to use <ask> statements in autoyast?
  • From: "Hougaard" <flhou@xxxxxxxxxxxxxxxxx>
  • Date: Tue, 20 Nov 2007 11:12:56 +0100
  • Message-id: <4742C134.DCFC.00E3.3@xxxxxxxxxxxxxxxxx>
Thanks all

... but I can still pull out a couple of questions ;)

My primary idea is to make a installpoint (nfs), where I PXE-boot and
install the servers needed - so if I make a script adding the password
to a file, could I do as follows?

<ask>
<path>arkmanager,dbpassword</path>
<file>nfs://10.0.0.1/install/autoyast/answer_password</file>

</ask>

if the same answer is valid for 2 values in the same section (eg.
locator_context & server_context both in the section group_context in
novell-dhcp) do i need to make 2 answersection there, or will the
following work?

<ask>

<path>novell-dhcp,group_context,locator_context,server_context</path>
<file>nfs://10.0.0.1/install/autoyast/answer_password</file>

</ask>

Again - thanks

Regards
Flemming

Uwe Gansert <ug@xxxxxxx> 19. november 2007 16:48:41 >>>
On Montag, 19. November 2007, Hougaard wrote:

- if I use the "<file>/tmp/answer_hostname</file>", what is the
format
of the answer file?? just an empty text file with the answer or?

it's a textfile with only the string of the answer. In case of a
boolean
it's "true" or "false" (without quotes), in case of textentries it's
the
exact string that was entered by the user.

- what about the value to be exchanged? should it be empty, or will
any
predefined value be exchanged with the one asked for?

does not matter. Empty or not, it will be replaced.

- Will it be possible to answer serveral "paths" with the same
question?? eg. below

unfortunately not. That's a design bug I did there. I'll fix that in
the
future somehow without breaking compatibilty

<ask>
<path>arkmanager,dbpassword</path>
<path>ca_mgm,password</path>
<question>Type Password</question>
<stage>initial</stage>
<default>Type in your password here</default>
</ask>

or is there, a more clever solution to such a question?

with 10.3 you could change the profile via script but with OES2 there
is no
really clever solution other than write a script and do the changes to
the
system by yourself with it.

- How about the password... is it possible to get this read from
an
clear text string? (I'm installing OES2, and there are several
passwords
and some are written in clear text, and some ain't)

if you need the password in an encrypted way, then you have to <ask>
the
user to enter it encrypted (*haha* - good one) or you encrypt it via
script
and write it to the correct position in the system.

--
ciao, Uwe Gansert

Uwe Gansert, Server Technologies Team
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Business: http://www.suse.de/~ug
now playing The Retrosic - Quid pro Quo
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx


--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References