Skip to content

Commit fd9f958

Browse files
Maxim Savamaximsava12
authored andcommitted
cifmw_ceph_client: Discover Ceph RGW and create Glance secrets
This patch enhances the cifmw_ceph_client role to: - Automatically discover Ceph RGW (RADOS Gateway) endpoint and credentials - Create Glance secrets using the discovered RGW settings This integration allows Glance to leverage Ceph RGW for secret storage when object store backends are enabled in the environment. Changes: - Add RGW discovery tasks to the role - Add logic to create Glance secrets with RGW config
1 parent ab27c18 commit fd9f958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/cifmw_ceph_client/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
ansible.builtin.shell:
8383
cmd: |
8484
set -xe -o pipefail
85-
oc rsh -n openstack openstackclient openstack endpoint list --interface internal --service swift -c URL -f value | cut -d "/" -f 1,2,3
85+
oc rsh -n {{ namespace }} openstackclient openstack endpoint list --interface internal --service swift -c URL -f value | cut -d "/" -f 1,2,3
8686
register: reg_ceph_rgw_s3_endpoint
8787
changed_when: "'stdout' in reg_ceph_rgw_s3_endpoint"
8888
failed_when: (reg_ceph_rgw_s3_endpoint.rc | int) >= 1
@@ -103,7 +103,7 @@
103103

104104
- name: Create ec2 credentials
105105
ansible.builtin.shell: |-
106-
oc rsh -n openstack openstackclient openstack credential create --type ec2 --project admin admin '{"access": "{{ ceph_s3_access_key }}", "secret": "{{ ceph_s3_secret_key }}"}'
106+
oc rsh -n {{ namespace }} openstackclient openstack credential create --type ec2 --project admin admin '{"access": "{{ ceph_s3_access_key }}", "secret": "{{ ceph_s3_secret_key }}"}'
107107
changed_when: false
108108

109109
- name: Create edpm-values-post-ceph ConfigMap if sample path provided

0 commit comments

Comments
 (0)