Re: Initializing paddles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux