Verified Commit 68f122fd authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:sparkles: feat(fuse-fai) Add support for FAI 5 is argonaut-fuse

issue #5845
Showing with 19 additions and 15 deletions
+19 -15
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2012-2016 FusionDirectory
Copyright (C) 2012-2018 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -28,7 +27,7 @@ class argonautFuseFAIConfig extends simplePlugin
{
return array(
'plShortName' => _('Argonaut Fuse FAI module settings'),
'plDescription' => _('Argonaut Fuse FAI module settings').' ('._('Services').')',
'plDescription' => _('Argonaut Fuse FAI module settings'),
'plCategory' => array('server'),
'plObjectClass' => array('argonautFuseFAIConfig'),
'plObjectType' => array('fusemodule'),
......@@ -36,27 +35,25 @@ class argonautFuseFAIConfig extends simplePlugin
);
}
/*!
* \brief The main function : information about attributes
*/
static function getAttributesInfo ()
{
return array (
'fai' => array (
'name' => _('FAI'),
'attrs' => array (
new IntAttribute (
_('FAI version'), _('Version of FAI installed on the server'),
'argonautFuseFaiVersion', TRUE,
4, 5, 5
),
new StringAttribute (
_('Fai flags'),
'',
'argonautFuseFaiFlags',
FALSE,
_('FAI flags'), _('Flags to pass to FAI'),
'argonautFuseFaiFlags', FALSE,
'verbose,sshd,syslogd,createvt,reboot'
),
new StringAttribute (
_('NFS root'),
'',
'argonautFuseNfsRoot',
TRUE,
_('NFS root'), '',
'argonautFuseNfsRoot', TRUE,
'/srv/fai/nfsroot'
),
)
......
......@@ -331,6 +331,13 @@ attributetype ( 1.3.6.1.4.1.38414.2.14.11 NAME 'argonautFuseLtspServer'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.38414.2.14.12 NAME 'argonautFuseFaiVersion'
DESC 'Fusion Directory - Argonaut, fuse fai version.'
EQUALITY integerMatch
ORDERING integerOrderingMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.38414.2.15.1 NAME 'argonautFAIMonitorPort'
DESC 'Fusion Directory - Argonaut FAI monitor, port.'
EQUALITY integerMatch
......@@ -419,7 +426,7 @@ objectclass ( 1.3.6.1.4.1.38414.2.2.7 NAME 'argonautFuseFAIConfig'
DESC 'An argonaut config for fuse FAI module'
SUP top AUXILIARY
MUST ( argonautFuseNfsRoot )
MAY ( argonautFuseFaiFlags ) )
MAY ( argonautFuseFaiVersion $ argonautFuseFaiFlags ) )
objectclass ( 1.3.6.1.4.1.38414.2.2.8 NAME 'argonautFuseLTSPConfig'
DESC 'An argonaut config for fuse LTSP module'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment