From 1dbccc122449f745c8cfa8d3e3e9054ffca557a1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Thu, 22 May 2025 13:42:40 +0000
Subject: [PATCH] Local image registry secrets for notebooks deployments
---
common/playbooks/notebooks.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/common/playbooks/notebooks.yaml b/common/playbooks/notebooks.yaml
index 5a508d4..5c49b60 100644
--- a/common/playbooks/notebooks.yaml
+++ b/common/playbooks/notebooks.yaml
@@ -26,6 +26,20 @@
debug:
msg: "{{ item.key }} = {{ item.value }}"
loop: "{{ deployment_secrets | dict2items }}"
+ - name: Nexus Repository Secrets
+ when: nexus_hostname is defined
+ block:
+ - name: Get Secrets From Vault for Nexus Repository
+ set_fact:
+ nexus_secrets: "{{ lookup('community.hashi_vault.hashi_vault', (vault_mount_point, 'nexus') | join('/'), token_validate=false) }}"
+ - name: Debug Nexus Repository Secrets
+ debug:
+ msg: "{{ item.key }} = {{ item.value }}"
+ loop: "{{ nexus_secrets | dict2items }}"
+ rescue:
+ - name: Vault Lookup for Nexus Repository
+ fail:
+ msg: "Failed vault lookup for Nexus Repository"
- name: Copy config file to master
vars:
name: "{{ item | basename | splitext | first }}"
--
GitLab