Skip to content

Commit

Permalink
Conditional handle pynetbox versions (#934)
Browse files Browse the repository at this point in the history
* Handle different pynetbox version
* Update dependencies
  • Loading branch information
rodvand committed Feb 7, 2023
1 parent da9b26a commit cc3816e
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 723 deletions.
24 changes: 5 additions & 19 deletions docs/plugins/environment_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ Environment variables used by the ansible-core configuation are documented in :r
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
.. envvar:: NETBOX_API

See the documentations for the options where this environment variable is used.
Endpoint of the NetBox API

*Used by:*
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`,
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
.. envvar:: NETBOX_API_KEY

NetBox API token to be able to read against NetBox.
Expand All @@ -30,24 +29,11 @@ Environment variables used by the ansible-core configuation are documented in :r

*Used by:*
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
.. envvar:: NETBOX_API_TOKEN

The API token created through NetBox

This may not be required depending on the NetBox setup.

*Used by:*
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
.. envvar:: NETBOX_TOKEN

See the documentations for the options where this environment variable is used.

*Used by:*
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`,
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
.. envvar:: NETBOX_URL
NetBox API token to be able to read against NetBox.

The URL to the NetBox instance to query
This may not be required depending on the NetBox setup.

*Used by:*
:ref:`netbox.netbox.nb\_lookup lookup plugin <ansible_collections.netbox.netbox.nb_lookup_lookup>`
:ref:`netbox.netbox.nb\_inventory inventory plugin <ansible_collections.netbox.netbox.nb_inventory_inventory>`
2 changes: 1 addition & 1 deletion docs/plugins/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Inventory Plugins
Lookup Plugins
~~~~~~~~~~~~~~

* :ref:`nb_lookup lookup <ansible_collections.netbox.netbox.nb_lookup_lookup>` -- Queries and returns elements from NetBox
* :ref:`nb_lookup lookup <ansible_collections.netbox.netbox.nb_lookup_lookup>` --



Expand Down

0 comments on commit cc3816e

Please sign in to comment.