Skip to content

Commit 9f7f5e0

Browse files
MK8S-25: Fix repository health check after disabling autoindex
Check repomd.xml instead of directory listing since HTTP directory browsing was disabled for security. The repomd.xml file is the standard RPM repository metadata that's always present.
1 parent e1851c5 commit 9f7f5e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

salt/metalk8s/repo/installed.sls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ Ensure repositories container is up:
9797
9898
Wait for Repositories container to answer:
9999
http.wait_for_successful_query:
100+
# Check repomd.xml instead of directory listing since autoindex is disabled
101+
# This RPM repository metadata file is always present and validates repo functionality
100102
- name: http://{{ grains.metalk8s.control_plane_ip }}:{{
101-
repo.port }}/{{ saltenv }}/
103+
repo.port }}/{{ saltenv }}/redhat/{{ grains.osmajorrelease }}/metalk8s-scality-el{{ grains.osmajorrelease }}/repodata/repomd.xml
102104
- status: 200
103105
- request_interval: 1
104106
- require:

0 commit comments

Comments
 (0)