[pve-devel] [PATCH cluster 1/2] add u2f configuration to datacenter.cfg

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Mar 27 11:16:22 CET 2019


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 data/PVE/Cluster.pm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 1d8ac85..a94ffad 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -1369,6 +1369,21 @@ sub pve_verify_mac_prefix {
     return $mac_prefix;
 }
 
+our $u2f_format = {
+    appid => {
+	type => 'string',
+	description => "U2F AppId URL override. Defaults to the origin.",
+	format_description => 'APPID',
+	optional => 1,
+    },
+    origin => {
+	type => 'string',
+	description => "U2F Origin override. Mostly useful for single nodes with a single URL.",
+	format_description => 'URL',
+	optional => 1,
+    },
+};
+
 my $datacenter_schema = {
     type => "object",
     additionalProperties => 0,
@@ -1464,6 +1479,12 @@ my $datacenter_schema = {
 	    description => 'Prefix for autogenerated MAC addresses.',
 	},
 	bwlimit => PVE::JSONSchema::get_standard_option('bwlimit'),
+	u2f => {
+	    optional => 1,
+	    type => 'string',
+	    format => $u2f_format,
+	    description => 'u2f',
+	},
     },
 };
 
-- 
2.11.0




More information about the pve-devel mailing list