Check whether a VM should be managed

This commit is contained in:
Emmanuel BENOîT 2022-08-07 22:37:17 +02:00
parent 6086aa4b92
commit 70117bbf9a

View file

@ -0,0 +1,12 @@
# Create the _inv__managed variable, containing an empty string, if and only
# if the metadata contains what we want AND the VM is connected to the network.
plugin: constructed
strict: false
compose:
_inv__managed: >-
( inv__instance and inv__service ) | ternary( '' , '' )
}}{% if proxmox__net0.link_down | default("0") == "1"
%}{{ this_variable_does_not_exist_and_so_inv_managed_will_not_be_created
}}{% endif
%}{{ ''