modified: README.md
Publish Python package to PyPI / publish (release) Failing after 17s

modified:   certbot_dns_netbox/dns_netbox.py
This commit is contained in:
Sven Luthi committed 2026-10-27 12:05:28 +01:00
1 parent da48d8ef90
commit 18b062a42d
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -28,6 +28,7 @@ expects them:
| `NETBOX_URL` | Base URL of the NetBox instance | | `NETBOX_URL` | Base URL of the NetBox instance |
| `NETBOX_BEARER` | NetBox API token (`Authorization: Bearer`) | | `NETBOX_BEARER` | NetBox API token (`Authorization: Bearer`) |
| `NETBOX_TOKEN` | NetBox API token (`Authorization: Token`) | | `NETBOX_TOKEN` | NetBox API token (`Authorization: Token`) |
| `SEARCH_VIEW` | NETBOX DNS View to search for records in. |
| `DEBUG` | Optional: verbose nbapi.py logging | | `DEBUG` | Optional: verbose nbapi.py logging |
One of `NETBOX_BEARER` / `NETBOX_TOKEN` is required. The token's user needs One of `NETBOX_BEARER` / `NETBOX_TOKEN` is required. The token's user needs
@@ -42,9 +43,9 @@ wildcard, from scratch. Adapt domains, names and paths to your environment.
### 1. Create the DNS zone ### 1. Create the DNS zone
Create the `example.com` zone in netbox-dns, in the view the plugin searches Create the `example.com` zone in netbox-dns, in the view the plugin searches
(`search_view` in `certbot_dns_netbox/dns_netbox.py`, default: `_default_`), and (`SEARCH_VIEW` environment variable, default: `_default_`), and note the
note the numeric **zone ID** of the new zone — it is shown in the web UI URL numeric **zone ID** of the new zone — it is shown in the web UI URL and can
and can be looked up with: be looked up with:
``` ```
GET /api/plugins/netbox-dns/zones/?name=example.com GET /api/plugins/netbox-dns/zones/?name=example.com
+1 -1
View File
@@ -26,7 +26,7 @@ from certbot.plugins import dns_common
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# netbox-dns view that contains the zone with the challenge TXT record. # netbox-dns view that contains the zone with the challenge TXT record.
search_view = "_default_" search_view = os.environ.get("SEARCH_VIEW") or "_default_"
class Authenticator(dns_common.DNSAuthenticator): class Authenticator(dns_common.DNSAuthenticator):