NetBox: Difference between revisions

Mike (talk | contribs)
Added details for debugging CSRF error, things that worked for me, and setup for config changes since 4.5.
Felbinger (talk | contribs)
Plugins: define existing plugins (from official netboxlabs page) and add warning about dependencies or incompabilities, not tracked or covered by a module yet.
 
Line 92: Line 92:


=== Plugins ===
=== Plugins ===
The NixOS module supports plugins from nixpkgs; currently about half of the existing NetBox plugins are packaged there. Until 26.05 these plugins are available as part of [https://search.nixos.org/packages?type=packages&query=python3Packages+netbox python3Packages]. Since 26.05 plugins can be found in the [https://search.nixos.org/packages?type=packages&query=netboxPlugins. netboxPlugins]  package set. The documentation for plugins is being worked on and discussed in [https://github.com/NixOS/nixpkgs/issues/261522 #261522].
The NixOS module supports plugins from nixpkgs; currently about half of the [https://netboxlabs.com/plugins/ existing NetBox plugins] are packaged there. Until 26.05 these plugins are available as part of [https://search.nixos.org/packages?type=packages&query=python3Packages+netbox python3Packages]. Since 26.05 plugins can be found in the [https://search.nixos.org/packages?type=packages&query=netboxPlugins. netboxPlugins]  package set. The documentation for plugins is being worked on and discussed in [https://github.com/NixOS/nixpkgs/issues/261522 #261522].


To include a plugin:<syntaxhighlight lang="nix">
To include a plugin:<syntaxhighlight lang="nix">
Line 102: Line 102:
}
}
</syntaxhighlight>The plugin identifier for <source lang="nix" enclose="none">services.netbox.settings.PLUGINS</source> is usually contained in the official documentation for the plugin. It usually is slightly different from the package name.
</syntaxhighlight>The plugin identifier for <source lang="nix" enclose="none">services.netbox.settings.PLUGINS</source> is usually contained in the official documentation for the plugin. It usually is slightly different from the package name.
Some plugins depend on other plugins (e. g. netbox-config-backup on netbox-napalm-plugin, or netbox-peering-manager on netbox-routing) and some are incompatible with each other (e. g. netbox-bgp and netbox-routing).


=== Setup Superuser ===
=== Setup Superuser ===