public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH WIP widget-toolkit/cluster/manager] Cluster-wide hosts config
@ 2023-09-14 10:03 Leo Nunner
  2023-09-14 10:03 ` [pve-devel] [PATCH WIP widget-toolkit] introduce abstractions for /etc/hosts view Leo Nunner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Leo Nunner @ 2023-09-14 10:03 UTC (permalink / raw)
  To: pve-devel

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-14 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-14 10:03 [pve-devel] [PATCH WIP widget-toolkit/cluster/manager] Cluster-wide hosts config Leo Nunner
2023-09-14 10:03 ` [pve-devel] [PATCH WIP widget-toolkit] introduce abstractions for /etc/hosts view Leo Nunner
2023-09-14 10:03 ` [pve-devel] [PATCH WIP cluster] hosts: add /etc/pve/hosts to watched files Leo Nunner
2023-09-14 10:03 ` [pve-devel] [PATCH WIP manager 1/2] api: endpoints for cluster-wide hosts config Leo Nunner
2023-09-14 10:03 ` [pve-devel] [PATCH WIP manager 2/2] gui: configure cluster-wide hosts through gui Leo Nunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal