Zack Williams | caf0566 | 2020-10-09 19:52:40 -0700 | [diff] [blame] | 1 | --- |
| 2 | # example inventory file for pulling from Netbox |
| 3 | |
| 4 | plugin: netbox.netbox.nb_inventory |
Wei-Yu Chen | fc59b68 | 2021-09-13 13:54:16 +0800 | [diff] [blame] | 5 | api_endpoint: "https://netbox.infra.onlab.us/" |
Zack Williams | caf0566 | 2020-10-09 19:52:40 -0700 | [diff] [blame] | 6 | |
Wei-Yu Chen | fc59b68 | 2021-09-13 13:54:16 +0800 | [diff] [blame] | 7 | # token can be created in Netbox at https://netbox.infra.onlab.us/user/api-tokens/ |
| 8 | token: "REPLACE_YOUR_TOKEN_HERE" |
Zack Williams | caf0566 | 2020-10-09 19:52:40 -0700 | [diff] [blame] | 9 | |
| 10 | # wet to true once DNS is working |
| 11 | validate_certs: false |
| 12 | |
| 13 | # build a config context for each host |
| 14 | config_context: true |
| 15 | |
| 16 | # only return hosts with primary IP addresses |
| 17 | device_query_filters: |
| 18 | - has_primary_ip: 'true' |
| 19 | |
Wei-Yu Chen | fc59b68 | 2021-09-13 13:54:16 +0800 | [diff] [blame] | 20 | ## use as the key to retrieve data from netbox |
| 21 | tenant_name: "example" |