feat(certificates): get_certificates on both drivers, with ACME (NetOrk/netork#2656)
The node's TLS certificates from GET /nodes/{node}/certificates/info (PBS:
/nodes/localhost/certificates/info) in netOrk's certificate contract,
{name, issuer, valid_from, valid_to, in_use_by} with Unix timestamps, so
netOrk's expiry warnings cover a node's web UI and API certificate.
One more call, the node's config, says whether ACME renews the certificate
the proxy serves (acme). The PEM is not returned; unreadable certificates
are [] and an unreadable config reads as no ACME.
This commit is contained in:
1 parent
c2d9d7e75e
commit
ff4ccc4818
6 files changed
+390
No files matched your search
@@ -49,6 +49,7 @@ except ImportError as exc:
|
||||
raise ImportError("proxmoxer is required: pip install proxmoxer") from exc
|
||||
|
||||
from napalm_proxmox._base import ProxmoxBase
|
||||
from napalm_proxmox.certificates import ProxmoxCertificatesMixin
|
||||
from napalm_proxmox.cluster_mixin import ProxmoxClusterMixin
|
||||
from napalm_proxmox.config_mixin import ProxmoxConfigMixin
|
||||
from napalm_proxmox.host_mixin import ProxmoxHostMixin
|
||||
@@ -103,6 +104,7 @@ class ProxmoxDriver(
|
||||
ProxmoxScheduledJobsMixin,
|
||||
ProxmoxRunningBackupsMixin,
|
||||
ProxmoxTimeSyncMixin,
|
||||
ProxmoxCertificatesMixin,
|
||||
HostStatusMixin,
|
||||
LicenseMixin,
|
||||
SnmpAgentMixin,
|
||||
|
||||
Reference in new issue
Block a user