Thomas S Hatch wrote:
>
>
>     Hmm... for mass insertions w/ multiple NIC's, would it be easier
>     to just do a bunch of SED's on a system.d file? 
>
>
> I was curious about this, I suppose it would be possible to simply 
> make a json file in system.d, is there any reason why this would not work?
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

Don't do this, it bypasses any validation code in the API -- and risks 
messing with the UIDs.

Options:

- Use the Python API
- Use the C API
- Use a bash script with the cobbler command line, using "cobbler sytem 
copy --name=foo --newname=foo2 --mac=AA:BB:CC:DD:EE:FF" and so forth.

If there are multiple NICs, you will need to script an add and a few 
edits for the bonus interfaces, or you could instead of doing "copy" 
just do adds.  Your choice.

Editing the files directly is dangerous, in general you should pretend 
the data store does not exist.

--Michael


_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to