Skip to content

Commit 0cc5678

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

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,3 +2370,10 @@ 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_enabled %}
2376+
logdetective_enabled: {{ logdetective_enabled }}
2377+
logdetective_url: {{ logdetective_url }}
2378+
logdetective_token: {{ logdetective_token }}
2379+
{% endif %}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,10 @@ 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_enabled %}
160+
logdetective_enabled: {{ logdetective_enabled }}
161+
logdetective_url: {{ logdetective_url }}
162+
logdetective_token: {{ logdetective_token }}
163+
{% endif %}

tasks/set-facts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454
ansible.builtin.set_fact:
5555
bw_uri: "ansible://{{ service }}/{{ deployment }}"
5656

57-
- name: Fetch git forges
57+
- name: Fetch git forges and other credentials
5858
when: deployment != "dev"
5959
tags:
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)