]> git.proxmox.com Git - pve-cluster.git/commit
api/cluster: add join endpoint
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 27 Nov 2017 09:55:14 +0000 (10:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 16 Feb 2018 12:50:36 +0000 (13:50 +0100)
commit6ed49eb1c5a6f4d8a1b01eefd8fe09197a6402b2
treea49f0a0157e9e1f74a76dc5972fa6505e9853069
parent331d957b62f1bee09fd86659c712ae95b6022ef5
api/cluster: add join endpoint

Add an endpoint to the API which allows to join an existing PVE
cluster by only using the API instead of CLI tools (pvecm).

Use a worker as this operation may need longer than 30 seconds.
With the worker we also get a task log entry/window for an UI for
free, allowing to give better feedback.

The join helper will be reused by the CLI handler in a later patch.
It is based on its behaviour, but swapped out the ssh parts with API
calls.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm
data/PVE/Cluster.pm
debian/control.in