Skip to content

Commit 874a574

Browse files
committed
[ci_gen_kustomize_values] nova05epsilon: ceph conf
The ceph.yml post_stage_run hook (via cifmw_ceph_client role) writes Ceph config files to cifmw_ceph_client_fetch_dir (default /tmp/). This template reads those files and provides them as base64-encoded values under data.ceph_conf (DCN convention). Generated-by: claude-4.6-opus-high Signed-off-by: Bohdan Dobrelia <bdobreli@redhat.com>
1 parent b1e39e6 commit 874a574

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • roles/ci_gen_kustomize_values/templates/nova05epsilon/edpm-nodeset-values-post-ceph
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# source: nova05epsilon/edpm-nodeset-values-post-ceph/values.yaml.j2
3+
# Auto-populates ceph_conf from files written by ceph.yml hook.
4+
# The ceph.yml post_stage_run hook (via cifmw_ceph_client role) writes
5+
# Ceph config files to cifmw_ceph_client_fetch_dir (default /tmp/).
6+
# This template reads those files and provides them as base64-encoded
7+
# values under data.ceph_conf (DCN convention).
8+
{% set _fetch_dir = cifmw_ceph_client_fetch_dir | default('/tmp') %}
9+
{% set _cluster = cifmw_ceph_client_cluster | default('ceph') %}
10+
{% set _conf_file = (_fetch_dir, _cluster ~ '.conf') | path_join %}
11+
{% set _keyring_file = (_fetch_dir, _cluster ~ '.client.openstack.keyring') | path_join %}
12+
data:
13+
ceph_conf:
14+
{{ _cluster }}.client.openstack.keyring: {{ lookup('file', _keyring_file, rstrip=False) | b64encode }}
15+
{{ _cluster }}.conf: {{ lookup('file', _conf_file, rstrip=False) | b64encode }}

0 commit comments

Comments
 (0)