<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"><<a href="mailto:hhoffman@ip-solutions.net" target="_blank">hhoffman@ip-solutions.net</a>></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'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: {'users': 'user1,user2,user3', 'rootmail': 'user@fq.dn'}</blockquote>
<div><br></div><div>You'll want to edit the way that the data is stored in the ksmeta field. For example if your system's name was "system1" you'd do the following:</div><div><br></div><div># cobbler system edit --name system1 --ksmeta='users=user1,user2,user3 root=user@fq.dn'</div>
<div><br></div><div>Then when you do the for loop you'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'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(',')<br>
user --name=$user<br>
#end for<br></blockquote><div><br></div><div style>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.</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'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>