how to set cv tags to selected devices with cv_deploy #6842
Unanswered
kmueller68
asked this question in
Q&A
Replies: 3 comments 1 reply
-
|
you would have to use some inline jinja to get this working. generate_cv_tags:
device_tags: |-
{% if "STORAGE" in inventory_hostname %}
- name: dc_storage
value: high
{% else %}
- name: dc_storage
value: low
{% endif %}This was written adhoc so test it out and adjust as needed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you for your reply. This is not working But I managed it this way: |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@ClausHolbechArista See my additional discussion here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I would like to assign custom tags to selected devices with cv_deploy.
I know the pissibility of custom tags by using
but this puts
mytagon all devices in the inventory.My idea is to assign special custom tags on selected devices, like:
dc_storage: high|low.dc_sec: vs.Is there a why to mamnage this with latest cv_deploy and custom device tags?
thank you very much
Karlheinz
Beta Was this translation helpful? Give feedback.
All reactions