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

Wolfgang Bumiller w.bumiller at proxmox.com
Thu May 24 15:28:46 CEST 2018


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

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 7569abc..149bbda 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -1346,6 +1346,19 @@ my $migration_format = {
     },
 };
 
+our $u2f_format = {
+    appid => {
+	type => 'string',
+	description => "Top level domain of PVE hosts for which U2F authentication is available.",
+	format_description => 'APPID',
+    },
+    origin => {
+	type => 'string',
+	description => "U2F Origin.",
+	format_description => 'APPID',
+    },
+};
+
 my $datacenter_schema = {
     type => "object",
     additionalProperties => 0,
@@ -1416,6 +1429,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