fix: report FreeBSD and OpenBSD hosts in the role bsd
BsdDriver set no ROLE, so both drivers inherited OSDriver's "linux" and an application that shows or branches on the role treated a BSD host as a Linux one. One key for both systems. Closes #10
This commit is contained in:
1 parent
405239d5df
commit
ce4a677756
4 files changed
+16
-3
No files matched your search
@@ -90,6 +90,9 @@ def render_snmpd_conf(settings: SnmpAgentSettingsDict) -> str:
|
||||
class BsdDriver(SnmpAgentMixin, EnsurePackageMixin, HostStatusMixin, OSDriver):
|
||||
"""Base for the BSD drivers; a concrete one names the commands that differ."""
|
||||
|
||||
#: One role for FreeBSD and OpenBSD. It replaces OSDriver's "linux", which
|
||||
#: would have the application treat a BSD host as a Linux one (#10).
|
||||
ROLE = "bsd"
|
||||
VENDOR = ""
|
||||
#: A full init sequence, as on any general-purpose host.
|
||||
REBOOT_SETTLE_SECONDS = 90
|
||||
|
||||
Reference in new issue
Block a user