> On Thu, Mar 26, 2009 at 6:22 AM, Michael DeHaan <[email protected]> wrote:
>   
>>> can i ask you to explain how in your example the system_name is set as i
>>> see it starts with
>>>
>>> #if $getVar("system_name","") != ""
>>>
>>> but where does 'system_name' come from ?
>>>
>>> thanks
>>> _______________________________________________
>>>       
>> Internals magic, basically.
>>
>> The variable "$name" was confusing because if you were on a per-profile
>> kickstart, it's different than a per-system kickstart.   So I added some
>> extra code to create some extra variables, so whether I was doing a profile
>> install or a system install, I always knew that $profile_name referenced the
>> name of the profile.
>>
>> "cobbler system dumpvars --name=foo" will show you all of them.
>>     
>
>   

this is very neat and it seems that i can use the variable 'hostname' as 
set in cobbler to do what i want.

could anyone offer me a slight hint on something that would basically do

if $getVar("hostname") = foo do something

if $getVar("hostname") = bar do something_else

and if $getVar("hostname") = baz do this final thing

i know this is basic stuff and i can do it with case but i think i need 
to adapt!

thanks
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to