On Thu, 2013-05-02 at 11:54 -0400, Chris Lumens wrote:
Can you give me an example of how this might be given in a kickstart file? Can multiple realm commands be specified in the same file?
Sure, and yes, the multiple lines would look like:
realm join --one-time-password=ThePassword domain.example.com realm permit --all
Okay, I thought this might be the case. Does each line then correspond to a specific command line? Basically, I am trying to understand two things here:
(1) Why does pykickstart/anaconda need to know the details of argument processing? For the authconfig command, for instance, we act just as a pass through and don't need to worry with what changes.
(2) For other commands that can be specified multiple times (the partitioning ones are the biggest example), there's not just a Command object but a Data object as well. You build up a list of the data objects and then execute each one in order. Why is this command done differently?
I think it is not necessary to have a Data object for the realm command. It doesn't care about the order of the commands and runs everything in the right order. It could even be:
realm join --one-time-password=ThePassword --permit=all domain.example.com
But the multiple-line syntax matches the manual realmd utility invocation in a better way.