<div dir="ltr">Hi,<br><div style><br></div><div class="gmail_extra">On Sat, Mar 2, 2013 at 5:59 PM, Harry Hoffman <span dir="ltr">&lt;<a href="mailto:hhoffman@ip-solutions.net" target="_blank">hhoffman@ip-solutions.net</a>&gt;</span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi All,<br>
<br>
I&#39;ve got a value (actually several) stored in ksmeta for a list of users. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Kickstart Metadata: {&#39;users&#39;: &#39;user1,user2,user3&#39;, &#39;rootmail&#39;: &#39;user@fq.dn&#39;}</blockquote>
<div><br></div><div>You&#39;ll want to edit the way that the data is stored in the ksmeta field. For example if your system&#39;s name was &quot;system1&quot; you&#39;d do the following:</div><div><br></div><div># cobbler system edit --name system1 --ksmeta=&#39;users=user1,user2,user3 root=user@fq.dn&#39;</div>
<div><br></div><div>Then when you do the for loop you&#39;ll pull in the correct values. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
I&#39;m trying to iterate over the list of users to be able to create users in my kickstart file.<br>
<br>
I was trying to do something like:<br>
#for $uname = $users.split(&#39;,&#39;)<br>
user --name=$user<br>
#end for<br></blockquote><div><br></div><div style>You might have issues here as well since you&#39;re assigning the values to $uname in the for loop but then using the variable $user when attempting to print out the user.</div>
<div style><br></div><div style>Andrew </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
But that doesn&#39;t seem to work.<br>
<br>
Anyone know how to do this?<br>
<br>
Cheers,<br>
Harry<br>
<br>
______________________________<u></u>_________________<br>
cobbler mailing list<br>
<a href="mailto:cobbler@lists.fedorahosted.org" target="_blank">cobbler@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a><br>
</blockquote></div><br></div></div>