Which class gets applied first?
Ryan Steele
ryans at aweber.com
Fri Nov 28 17:47:43 CET 2008
Michael Tautschnig wrote:
>> Thomas Lange wrote:
>>
>>>>>>>> On Wed, 26 Nov 2008 09:56:56 -0500, Ryan Steele <ryans at aweber.com> said:
>>>>>>>>
>>>>>>>> In a situation where the FAI client uses several classes that
>>>>>>>> have package_config files, are all the applicable
>>>>>>>> package_config/ files processed in a certain order, or at the
>>>>>>>> same time? In other words, are they processed based on the
>>>>>>>> lexical ordering of their names (e.g. CLASSA comes before
>>>>>>>> CLASSZ, CLASS1 comes before CLASS2, etc.), or some other
>>>>>>>> criteria?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>> All package names from both classes are combined to a long list.
>>>
>> And in the same vein, what about custom scripts? E.g., if you have:
>>
>>
>> CLASS1/80-ssh
>> CLASS2/80-ssh
>>
>>
>> ... are they run in lexical order (e.g., CLASS1's 80-ssh gets run
>> first), or ...? Obviously, you can't concatenate these, as the
>> interpreter could differ from script to script.
>>
>>
>
> I was pretty sure that this is documented, but apparently this is not the case,
> neither the FAI guide nor fai-do-scripts(1) tells you about this. Thomas, did I
> miss a point where this _is_ documented?
>
> Either way: The order of classes defines the order of execution, that is:
>
> - DEFAULT is first
> - LAST is last
> - in between go your classes in the order defined.
>
Forgive me for asking what is potentially an obvious question, but do
you mean the order defined in 50-host-classes? So, if I have:
echo "CLASS2 CLASS1" ;;
...in my 50-host-classes, CLASS2/80-ssh gets run before CLASS1/80-ssh?
Respectfully,
Ryan
More information about the linux-fai
mailing list