-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetbox.yml
More file actions
38 lines (38 loc) · 1.12 KB
/
Copy pathnetbox.yml
File metadata and controls
38 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
plugin: netbox.netbox.nb_inventory
# QUERY CONFIG
api_endpoint: https://netbox.frai.se
token: !vault |
$ANSIBLE_VAULT;1.1;AES256
38323034653334383833323930306436316438643831373332643065343930663531646633306336
6539366665616561343266396333316465376232393333380a633562653966393036626565643463
62346135356136396161346262383962323662353962336230333063616634333265616133323730
6664666565373831330a633738373437633963363336343938313737333636666131356162653632
38386661663061313838356335353165363864336432343039633139303563386335336438323263
3165626665323566653230656234373131623563383832303466
query_filters:
- status: active
- has_primary_ip: 'true'
# RETURN VALUE CONFIG
keyed_groups:
- prefix: role
key: role.slug
- prefix: platform
key: platform.slug
- prefix: manufacturer
key: manufacturers
- prefix: tenant
key: tenant.slug
- prefix: site
key: site.slug
- prefix: tag
key: tags
config_context: true
flatten_config_context: true
interfaces: true
virtual_disks: true
# CACHE CONFIG
cache: true
cache_plugin: jsonfile
cache_connection: /tmp/ansible_inventory_cache
cache_prefix: netbox_