Display role vocabulary, migration commit fix, stale enforcement reports
This commit is contained in:
@@ -141,6 +141,26 @@ class GeEnforcePlugin(BasePlugin):
|
||||
},
|
||||
]
|
||||
|
||||
def get_settings_defaults(self) -> List[Dict]:
|
||||
"""How long a PC may go quiet before the fleet table calls it stale."""
|
||||
return [
|
||||
{
|
||||
'key': 'geenforce_reportstaleminutes',
|
||||
'value': '30',
|
||||
'valuetype': 'integer',
|
||||
'category': 'geenforce',
|
||||
'description': 'Minutes without an enforcement report before a '
|
||||
'PC is shown as stale. A report records how the '
|
||||
'LAST cycle went, so a PC that stops reporting '
|
||||
'keeps whatever status it last sent - it reads '
|
||||
'as healthy while it is switched off. Set to 0 '
|
||||
'to disable the check.',
|
||||
# Server-side only: nothing on a PC reads this, so it stays off
|
||||
# the public settings surface.
|
||||
'public': False,
|
||||
},
|
||||
]
|
||||
|
||||
def init_app(self, app: Flask, db_instance) -> None:
|
||||
logger.info(f"GE-Enforce plugin initialized (v{self.meta.version})")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user