2017-11-18 20:15:00 +00:00
|
|
|
# HyperProxmox
|
2017-10-24 12:42:54 +00:00
|
|
|
|
|
|
|
* Author : Tlams
|
|
|
|
* Date : 2017/2018
|
|
|
|
* Status: Dev
|
2017-11-19 10:01:35 +00:00
|
|
|
* Object : Massive LXC CT / KVM deployment system for Proxmox clusters.
|
2017-10-29 16:59:20 +00:00
|
|
|
|
2017-11-18 20:42:28 +00:00
|
|
|
## Quick start
|
2017-10-29 16:59:20 +00:00
|
|
|
|
|
|
|
### Requirement:
|
2017-11-18 20:15:00 +00:00
|
|
|
* Proxmox server or cluster (or multiples clusters !)
|
2017-11-18 20:07:58 +00:00
|
|
|
* administrative pve user (full access)
|
|
|
|
* Vztemplate uploaded
|
2017-10-29 16:59:20 +00:00
|
|
|
|
|
|
|
### 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/<id>
|
2017-11-18 20:15:00 +00:00
|
|
|
```
|