From e283d0f2f7039b71fa1ca141eec14f5a3f6d226b Mon Sep 17 00:00:00 2001 From: "thomas.guiseppin" Date: Sun, 29 Oct 2017 17:59:20 +0100 Subject: [PATCH] Update readme --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e18727d..ca62fa1 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,41 @@ * Author : Tlams * Date : 2017/2018 * Status: Dev -* Object : Massive LXC CT deploy system for proxmox hypervisor. \ No newline at end of file +* Object : Massive LXC CT deploy system for proxmox hypervisor. + + +## Quick start (testings) + +### Requirement: +* A proxmox server +* A administrative pve user (full access) +* A Vztemplate uploaded + +### Init: +``` bash +# Start & generate your key +python3.5 startup.py +``` + +### Insert your first cluster +``` bash +curl -H -XPOST -d '{ "name": "Cluster_1", + "url":"proxmox.cluster.net", + "port": "8006", + "user": "user@pve", + "password": "******", + "template": "local:vztmpl/debian-9.0-standard_9.0-2_amd64.tar.gz", + "storage_disk": "disks", + "exclude_nodes": [""], + "weight": 1 }' localhost:8080/api/v1/administration/cluster/new\ +``` + +### Create your first CT +``` bash +curl -H -XPOST -d '{"count":"1"}' localhost:8080/api/v1/instance/new +``` + +### Delete it +``` bash +curl -XDELETE localhost:8080/api/v1/instance/ +``` \ No newline at end of file