Skip to content

Commit f62398a

Browse files
vexxhost-botmnaserclaude
authored
[stable/2024.2] fix(ceph_csi_rbd): fix external Ceph keyring variable evaluation (#3330)
Signed-off-by: Mohammed Naser <[email protected]> Co-authored-by: Mohammed Naser <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 8c36fc0 commit f62398a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roles/ceph_csi_rbd/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
- name: Store keyring inside fact
7070
run_once: true
7171
ansible.builtin.set_fact:
72-
_ceph_rbd_csi_ceph_keyring:
73-
key: "{{ ceph_csi_rbd_keyring | default((_ceph_key.stdout | from_json | first).key) }}"
72+
ceph_csi_rbd_keyring: "{{ (_ceph_key.stdout | from_json | first).key }}"
73+
when: ceph_csi_rbd_keyring is not defined
7474

7575
- name: Deploy Helm chart
7676
run_once: true

roles/ceph_csi_rbd/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ _ceph_csi_rbd_helm_values:
5252
secret:
5353
create: true
5454
userID: "{{ ceph_csi_rbd_id }}"
55-
userKey: "{{ _ceph_rbd_csi_ceph_keyring.key }}"
55+
userKey: "{{ ceph_csi_rbd_keyring }}"

0 commit comments

Comments
 (0)