Wednesday, 2020-12-02

*** Marbug has quit IRC01:00
*** Marbug has joined #ara01:30
*** tykling has joined #ara03:13
*** ccamacho has quit IRC05:20
*** evrardjp has quit IRC05:33
*** evrardjp has joined #ara05:33
*** TKersten has joined #ara06:34
*** ccamacho has joined #ara07:59
*** sshnaidm is now known as sshnaidm|ruck09:34
*** sshnaidm|ruck has quit IRC10:01
*** sshnaidm has joined #ara10:01
ara-slackchristophe.delarue: @christophe.delarue has joined the channel10:04
ara-slackchristophe.delarue: (I am new to slack ara)10:11
ara-slackI have in my inventory some ansible variable to identify a client {{ client }} and an target env (aka prod or uat)10:11
ara-slackI'd like to see those variables in Label column of ara web.10:11
ara-slackAFAIK label only display argument_labels :(10:11
ara-slackIs there a way to do it ?10:11
ara-slackI tried setting ara_default_labels in my group_vars/all with the ansible variable but I did not get what I wanted10:11
*** sshnaidm is now known as sshnaidm|afk10:55
*** cristobal44 has joined #ara11:00
cristobal44(I tried on slack, #general with no anwser, I try on irc)11:01
cristobal44I have in my inventory some ansible variable to identify a client {{ client }} and an target env (aka prod or uat)I'd like to see those variables in Label column of ara web.AFAIK label only display argument_labels :(Is there a way to do it ?I tried setting ara_default_labels and ara_playbook_label in my group_vars/all with the ansible variable but11:02
cristobal44I did not get what I wanted11:02
*** sshnaidm|afk is now known as sshnaidm|ruck11:39
*** mgariepy has quit IRC12:09
dmsimardcristobal44: the irc and slack channels are bridged :)12:49
dmsimardara_default_labels goes into ansible.cfg or an env variable, it's not an ansible variable12:50
dmsimardara_playbook_labels might just work if specified directly in the playbook itself, there is an issue on github to troubleshoot why12:51
*** maiseycorne has quit IRC12:55
*** dbpiv has joined #ara13:08
*** mgariepy has joined #ara13:17
ara-slackchristophe.delarue: @dmsimard :slightly_smiling_face:13:47
ara-slackara_default_labels set in ansible.cfg cannot use content of result variables as ara_default_labels="{{ client }}"13:47
ara-slackI tried to add13:47
ara-slack  vars:13:47
ara-slack    ara_playbook_labels:13:47
ara-slack      - "{{ client }}"13:47
ara-slack      - "{{ env }}"13:47
ara-slackBut the label {{ client }} is shown instead of value of the ansible variable, and are shown only if task is runned, not skipped for example with --check13:47
dmsimardah yeah there is an issue about templating labels as well: https://github.com/ansible-community/ara/issues/18013:48
dmsimardwhere do the client and env variables come from ?13:48
ara-slackchristophe.delarue: @dmsimard We have one inventory per client / env.13:51
ara-slackWe set those ansible variables in inventory13:51
dmsimardmakes sense13:52
dmsimardthis is the issue about setting labels from inventory variables: https://github.com/ansible-community/ara/issues/13913:52
ara-slackchristophe.delarue: Workaround I use : I added the inventory argument in ARA_ARGUMENT_LABEL, so I can see which client/env is targeted as the inventory name contains the information, ARA_ARGUMENT_LABELS=inventory,remote_user,check,tags,skip_tags,subset13:54
dmsimardin integration tests we template labels like this https://github.com/ansible-community/ara/blob/master/tests/zuul_metadata.yaml and then set them here: https://github.com/ansible-community/ara/blob/1b848c7c3617f7163a64113d4e2e0c76230a3e19/tests/test_tasks.yaml#L7913:56
dmsimardbut that works mostly because we run ansible... with ansible13:57
tykling*head explodes*13:58
dmsimardyeah zuul which runs the integration tests runs ansible which installs and runs ansible to test ara :p14:00
*** TKersten has quit IRC15:35
*** mgariepy has quit IRC15:58
*** mgariepy has joined #ara16:37
*** sshnaidm|ruck is now known as sshnaidm|afk17:47
*** maiseycorne has joined #ara17:48
*** cristobal44 has quit IRC18:00
*** maiseycorne has quit IRC19:00
*** dbpiv has quit IRC20:36
*** dbpiv has joined #ara20:39
*** ccamacho has quit IRC20:48
*** gvincent has quit IRC21:04
*** dbpiv has quit IRC21:41
*** etienne has quit IRC23:21

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!