1plugin: netbox.netbox.nb_inventory 2api_endpoint: "http://localhost:32768" 3token: "0123456789abcdef0123456789abcdef01234567" 4validate_certs: False 5 6# Cache is not for performance of tests, but to test the caching option works 7# Also set on test-inventory-plurals.yml so that we actually hit the cache on one of these runs 8cache: True 9cache_timeout: 3600 10cache_plugin: jsonfile 11cache_connection: /tmp/inventory_netbox 12 13config_context: False 14plurals: False 15interfaces: False 16services: False 17group_names_raw: True 18virtual_chassis_name: True 19dns_name: True 20ansible_host_dns_name: True 21 22group_by: 23 - site 24 - tenant 25 - rack 26 - location 27 - rack_role 28 - tag 29 - role 30 - device_type 31 - manufacturer 32 - platform 33 - region 34 - cluster 35 - cluster_group 36 - cluster_type 37 - is_virtual 38 - status 39 40query_filters: 41 42device_query_filters: 43 - role: core-switch 44 45vm_query_filters: 46 - cluster_type: test-cluster-type 47 48# See Constructed for details 49# https://docs.ansible.com/ansible/latest/plugins/inventory/constructed.html 50 51compose: 52 display: display_name 53 rack_id: rack.id 54 ntp_servers: config_context.ntp_servers 55 56keyed_groups: 57 - prefix: rack 58 key: rack.name 59 60groups: 61 jinja_test_group: inventory_hostname.startswith('Test') 62