From: Leo Nunner <l.nunner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH WIP widget-toolkit/cluster/manager] Cluster-wide hosts config
Date: Thu, 14 Sep 2023 12:03:37 +0200 [thread overview]
Message-ID: <20230914100341.122329-1-l.nunner@proxmox.com> (raw)
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
next reply other threads:[~2023-09-14 10:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 10:03 Leo Nunner [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230914100341.122329-1-l.nunner@proxmox.com \
--to=l.nunner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox