[cobbler] iterating of a list stored in ksmeta

Harry Hoffman hhoffman at ip-solutions.net
Mon Mar 4 13:09:01 UTC 2013


Thanks guys,

The typo was just in my email. But that code didn't work.

What did was the following:
#set uname = $users.split(",")
#for $name in $uname
user --name=$name
#end for


Cheers,
Harry

On 03/04/2013 07:11 AM, James Cammarata wrote:
>>
>>
>>> I'm trying to iterate over the list of users to be able to create users
>>> in my kickstart file.
>>>
>>> I was trying to do something like:
>>> #for $uname = $users.split(',')
>>> user --name=$user
>>> #end for
>>>
>>
>> You might have issues here as well since you're assigning the values to
>> $uname in the for loop but then using the variable $user when attempting to
>> print out the user.
>>
> 
> Right, it should be:
> 
> #for $uname in $users.split(',')
> user --name=$uname
> #end for
> 
> 
> 
> _______________________________________________
> cobbler mailing list
> cobbler at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
> 


More information about the cobbler mailing list