Skip to content

Commit 7d28372

Browse files
committed
Adding conditional Log Detective variables to configuration templates
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
1 parent 9c26fd5 commit 7d28372

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

secrets/packit/prod/packit-service.yaml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,3 +2370,9 @@ enabled_projects_for_fedora_ci:
23702370
- https://src.fedoraproject.org/rpms/yt-dlp
23712371
- https://src.fedoraproject.org/rpms/zathura-pdf-mupdf
23722372
- https://src.fedoraproject.org/rpms/zeal
2373+
2374+
# Log Detective interface server URL and token
2375+
{% if logdetective_url %}
2376+
logdetective_url: {{ logdetective_url }}
2377+
logdetective_token: {{ logdetective_token }}
2378+
{% endif %}

secrets/packit/stg/packit-service.yaml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,9 @@ enabled_projects_for_fedora_ci:
154154
- https://src.fedoraproject.org/rpms/python-scikit-build-core
155155
- https://src.fedoraproject.org/rpms/python-specfile
156156
- https://src.fedoraproject.org/rpms/spglib
157+
158+
# Log Detective interface server URL and token
159+
{% if logdetective_url %}
160+
logdetective_url: {{ logdetective_url }}
161+
logdetective_token: {{ logdetective_token }}
162+
{% endif %}

tasks/set-facts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@
6060
- always
6161
ansible.builtin.set_fact:
6262
git_forges: "{{ lookup('community.general.bitwarden', bw_uri + '/git', search='') }}"
63+
logdetective_url: "{{ lookup('community.general.bitwarden', bw_uri + '/ld', field='url') }}"
64+
logdetective_token: "{{ lookup('community.general.bitwarden', bw_uri + '/ld', field='token') }}"

0 commit comments

Comments
 (0)