| --- |
| # example inventory file for pulling from Netbox |
| |
| plugin: netbox.netbox.nb_inventory |
| api_endpoint: "https://netbox.infra.onlab.us/" |
| |
| # token can be created in Netbox at https://netbox.infra.onlab.us/user/api-tokens/ |
| token: "REPLACE_YOUR_TOKEN_HERE" |
| |
| # wet to true once DNS is working |
| validate_certs: false |
| |
| # build a config context for each host |
| config_context: true |
| |
| # only return hosts with primary IP addresses |
| device_query_filters: |
| - has_primary_ip: 'true' |
| |
| ## use as the key to retrieve data from netbox |
| tenant_name: "example" |