with this, users now can schedule realm sync jobs, instead of manually pressing 'sync' or configuring a cronjob for 'pveum realm sync'
the access-control patch needs special care, since i try to sync independent pve-scheduler calls across the cluster. in my tests here it worked, but that does not mean i didn't overlook some things. pve-manager depends on the new access-control and widget-toolkit i tried to find a way to not add two levels of directories there, while keeping the suggested 'PVE::API2::AccessControl::Job::RealmSync' path, but the only other method i saw was to put all the code into 'Job.pm' which felt weird. So we introduce two levels of dirs to properly split the perl packages. the first patch of access-control and manager could be applied without the rest, it clears up the confusion for using the checkboxes and the realm default the result is that now the user always gets what he sees when using the sync window or realm sync job edit and never implicitly falling back to the realm defaults. If we want that, i can do that and send a v3 (basically i'd have to add a 'use default' checkbox for the remove-vanished option) since PVE::Jobs::Registry lives in pve-common now, there is no cyclic dependency between manager/access control anymore changes from v1: * include thomas suggestions * add patches to allow 'none' for remove-vanished * add patch for wt that allows filtering for the realm combobox * load the default values (if any) from the realm on sync job create, but not on edit pve-access-control: Dominik Csapak (2): realm: sync: allow 'none' for 'remove-vanished' option add realmsync plugin for jobs and CRUD api for domainsync-jobs src/PVE/API2/AccessControl.pm | 6 + src/PVE/API2/AccessControl/Job.pm | 47 +++ src/PVE/API2/AccessControl/Job/Makefile | 6 + src/PVE/API2/AccessControl/Job/RealmSync.pm | 324 ++++++++++++++++++++ src/PVE/API2/AccessControl/Makefile | 9 + src/PVE/API2/Makefile | 4 + src/PVE/Auth/Plugin.pm | 8 +- src/PVE/Jobs/Makefile | 6 + src/PVE/Jobs/RealmSync.pm | 193 ++++++++++++ src/PVE/Makefile | 1 + 10 files changed, 601 insertions(+), 3 deletions(-) create mode 100644 src/PVE/API2/AccessControl/Job.pm create mode 100644 src/PVE/API2/AccessControl/Job/Makefile create mode 100644 src/PVE/API2/AccessControl/Job/RealmSync.pm create mode 100644 src/PVE/API2/AccessControl/Makefile create mode 100644 src/PVE/Jobs/Makefile create mode 100644 src/PVE/Jobs/RealmSync.pm proxmox-widget-toolkit: Dominik Csapak (1): RealmComboBox: add custom store filters for callers src/form/RealmComboBox.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) pve-manager: Dominik Csapak (3): ui: realm: sync: don't use realm defaults for remove-vanished Jobs: add RealmSync Plugin and register it ui: add Realm Sync panel PVE/Jobs.pm | 2 + www/manager6/Makefile | 1 + www/manager6/dc/Config.js | 7 + www/manager6/dc/RealmSyncJob.js | 380 ++++++++++++++++++++++++++++++++ www/manager6/dc/SyncWindow.js | 2 + 5 files changed, 392 insertions(+) create mode 100644 www/manager6/dc/RealmSyncJob.js -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel