Bypass proxy environment for Proxmox API requests
This commit is contained in:
@@ -14,3 +14,4 @@
|
|||||||
| 0.2.0 | 4.4.0 | 4.6.x |
|
| 0.2.0 | 4.4.0 | 4.6.x |
|
||||||
| 0.2.1 | 4.4.0 | 4.6.x |
|
| 0.2.1 | 4.4.0 | 4.6.x |
|
||||||
| 0.2.2 | 4.4.0 | 4.6.x |
|
| 0.2.2 | 4.4.0 | 4.6.x |
|
||||||
|
| 0.2.3 | 4.4.0 | 4.6.x |
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ sudo systemctl restart netbox netbox-rq
|
|||||||
|
|
||||||
Bei selbstsignierten Proxmox-Zertifikaten `Validate SSL` deaktiviert lassen. Wenn Proxmox langsam antwortet, kann `API timeout` am Endpoint erhoeht werden.
|
Bei selbstsignierten Proxmox-Zertifikaten `Validate SSL` deaktiviert lassen. Wenn Proxmox langsam antwortet, kann `API timeout` am Endpoint erhoeht werden.
|
||||||
|
|
||||||
|
Der Proxmox-Client ignoriert Proxy-Umgebungsvariablen des NetBox-Dienstes, damit interne Proxmox-Adressen nicht versehentlich ueber einen HTTPS-Proxy laufen.
|
||||||
|
|
||||||
Wenn Passwort-Login auf `access/ticket` haengt, zuerst den Realm im Benutzernamen pruefen (`root@pam`, `user@pve`, `user@ldaprealm`). Fuer produktive Imports ist ein Proxmox API-Token meistens stabiler als Passwort-Login.
|
Wenn Passwort-Login auf `access/ticket` haengt, zuerst den Realm im Benutzernamen pruefen (`root@pam`, `user@pve`, `user@ldaprealm`). Fuer produktive Imports ist ein Proxmox API-Token meistens stabiler als Passwort-Login.
|
||||||
|
|
||||||
Wenn `Sync interval minutes` gesetzt ist, prueft ein Systemjob alle fuenf Minuten, welche Endpoints faellig sind, und stellt die eigentlichen Sync-Jobs in die Queue.
|
Wenn `Sync interval minutes` gesetzt ist, prueft ein Systemjob alle fuenf Minuten, welche Endpoints faellig sind, und stellt die eigentlichen Sync-Jobs in die Queue.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ class VMwareImporterConfig(PluginConfig):
|
|||||||
name = "netbox_vmware_importer"
|
name = "netbox_vmware_importer"
|
||||||
verbose_name = "Virtualization Importer"
|
verbose_name = "Virtualization Importer"
|
||||||
description = "Synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
|
description = "Synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
author = "Internal NetBox Team"
|
author = "Internal NetBox Team"
|
||||||
base_url = "vmware-importer"
|
base_url = "vmware-importer"
|
||||||
min_version = "4.4.0"
|
min_version = "4.4.0"
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ class ProxmoxClient:
|
|||||||
raise ProxmoxConnectionError("Proxmox username must include a realm, e.g. root@pam or user@pve.")
|
raise ProxmoxConnectionError("Proxmox username must include a realm, e.g. root@pam or user@pve.")
|
||||||
|
|
||||||
self.session = requests.Session()
|
self.session = requests.Session()
|
||||||
|
self.session.trust_env = False
|
||||||
self.session.verify = self.endpoint.validate_ssl
|
self.session.verify = self.endpoint.validate_ssl
|
||||||
if not self.endpoint.validate_ssl and InsecureRequestWarning is not None:
|
if not self.endpoint.validate_ssl and InsecureRequestWarning is not None:
|
||||||
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
|
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "netbox-vmware-importer"
|
name = "netbox-vmware-importer"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
description = "NetBox plugin to synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
|
description = "NetBox plugin to synchronize VMware vSphere and Proxmox VE virtual machines into NetBox."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
Reference in New Issue
Block a user