Hi Zack, On 29/10/2014 21:37, Zack Cerza wrote: > You should actually be able to POST a json object with a 'name' key > (and whichever other ones you want) to /nodes/ ! I completely missed that, thanks :-) Cheers > On Sat, Oct 25, 2014 at 5:28 PM, Loic Dachary <loic@xxxxxxxxxxx> wrote: >> >> >> On 24/10/2014 22:36, Loic Dachary wrote: >>> Hi Zack, >>> >>> Now that I have a paddles server running, I'd like to populate it with two virtual machines I have running. Is there a script to do this or should I just type SQL statements to do that semi-intuitively ? >>> >>> $ curl 'http://localhost:8080/nodes/?machine_type=vps&count=2' >>> [] >> >> I tried something like >> >> for id in 1 2 3 ; do sqlite3 dev.db "insert into nodes (id,name,machine_type,is_container,is_vm,locked,up,locked_by) values ($id, 'container00$id', 'plana', 1, 0, 0, 1, 'scheduled');" ; done >> >> and it works so far (i.e. I'm making progress although I'm not to the point where a machine gets a job yet ;-) >> >> Cheers >> >>> >>> Cheers >>> >> >> -- >> Loïc Dachary, Artisan Logiciel Libre >> > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Loïc Dachary, Artisan Logiciel Libre
Attachment:
signature.asc
Description: OpenPGP digital signature