You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user i would like to be able to fine-tuned the host_vars, for that, I would like to have a finer approach in the Inventory to avoid getting all the attributes of a given related_node if I a interested in only one
Use case
Be able to request only one attribute of a relationship instead of the full object to keep the host_vars cleaner
Example: if you want to get only the ansible_network_os attribute in platform you could do
plugin: opsmill.infrahub.inventoryapi_endpoint: "http://localhost:8000"token: "{{ lookup('ansible.builtin.env', 'INFRAHUB_API_TOKEN') }}"timeout: 30strict: falsenodes:
InfraDevice:
include:
- id
- name
- platform.ansible_network_os
instead of
plugin: opsmill.infrahub.inventoryapi_endpoint: "http://localhost:8000"token: "{{ lookup('ansible.builtin.env', 'INFRAHUB_API_TOKEN') }}"timeout: 30strict: falsenodes:
InfraDevice:
include:
- id
- name
- platformcompose:
platform: platform.ansible_network_os
External dependencies
none
The text was updated successfully, but these errors were encountered:
Infrahub version
v0.14.2
Feature type
Change to existing Plugin
Proposed functionality
As a user i would like to be able to fine-tuned the host_vars, for that, I would like to have a finer approach in the Inventory to avoid getting all the attributes of a given related_node if I a interested in only one
Use case
Be able to request only one attribute of a relationship instead of the full object to keep the host_vars cleaner
Example: if you want to get only the
ansible_network_os
attribute inplatform
you could doinstead of
External dependencies
none
The text was updated successfully, but these errors were encountered: