[pve-devel] [PATCH WIP widget-toolkit/cluster/manager] Cluster-wide hosts config

Leo Nunner l.nunner at proxmox.com
Thu Sep 14 12:03:37 CEST 2023


This series introduces the ability to sync entries to the /etc/hosts
file on all nodes in a cluster. The cluster-wide configuration is stored
in /etc/pve/hosts. Synchronization is triggered manually. Information on
the corresponding endpoints and functionality can be found in the
corresponding commits.

This series is still WIP, and probably needs some changes here and
there. Especially the syncing mechanism is still a bit rough, and I
didn't get around to testing it thoroughly. Most of it is derived from
the SDN synchronization code, and might need some more adaptions. We
might also want to change the paths of the API endpoints, since
/cluster/hosts could be a bit confusing.

proxmox-widget-toolkit:

Leo Nunner (1):
  introduce abstractions for /etc/hosts view

 src/Makefile                |   1 +
 src/node/HostsView.js       | 329 ++++++++++++++++++++++++++++--------
 src/panel/HostsEditPanel.js | 137 +++++++++++++++
 3 files changed, 401 insertions(+), 66 deletions(-)
 create mode 100644 src/panel/HostsEditPanel.js

pve-cluster:

Leo Nunner (1):
  hosts: add /etc/pve/hosts to watched files

 src/PVE/Cluster.pm  | 1 +
 src/pmxcfs/status.c | 1 +
 2 files changed, 2 insertions(+)

pve-manager:

Leo Nunner (2):
  api: endpoints for cluster-wide hosts config
  gui: configure cluster-wide hosts through gui

 PVE/API2/Cluster.pm       |   6 +
 PVE/API2/Cluster/Hosts.pm | 208 ++++++++++++++++++++++++++++++
 PVE/API2/Cluster/Makefile |   3 +-
 PVE/API2/Nodes.pm         |  39 ++++++
 PVE/Hosts.pm              | 152 ++++++++++++++++++++++
 PVE/Makefile              |   1 +
 www/manager6/Makefile     |   1 +
 www/manager6/dc/Config.js |   6 +
 www/manager6/dc/Hosts.js  | 257 ++++++++++++++++++++++++++++++++++++++
 9 files changed, 672 insertions(+), 1 deletion(-)
 create mode 100644 PVE/API2/Cluster/Hosts.pm
 create mode 100644 PVE/Hosts.pm
 create mode 100644 www/manager6/dc/Hosts.js

-- 
2.39.2






More information about the pve-devel mailing list