From 3a29616181777b9e673fba88b327b18b0875b434 Mon Sep 17 00:00:00 2001 From: Razvan-Liviu Varzaru Date: Tue, 17 Dec 2024 11:07:40 +0200 Subject: [PATCH] MDBF-865 - Nginx cloud-init location add /cloud-init location to expose required artifacts for libvirt cloud-init image deployment in Ansible --- docker-compose/docker-compose.yaml | 1 + docker-compose/generate-config.py | 1 + docker-compose/nginx/templates/ci.conf.template | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index fca9ae77..8d588273 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -49,6 +49,7 @@ services: - /srv/buildbot/packages:/srv/buildbot/packages:ro - /srv/buildbot/galera_packages:/srv/buildbot/galera_packages:ro - /srv/buildbot/helper_files:/srv/buildbot/helper_files:ro + - /srv/buildbot/cloud-init:/srv/buildbot/cloud-init:ro - ./certbot/www/:/var/www/certbot/:ro - ./certbot/ssl/:/etc/nginx/ssl/:ro environment: diff --git a/docker-compose/generate-config.py b/docker-compose/generate-config.py index 425f8b0f..7c4c328f 100755 --- a/docker-compose/generate-config.py +++ b/docker-compose/generate-config.py @@ -77,6 +77,7 @@ - /srv/buildbot/packages:/srv/buildbot/packages:ro - /srv/buildbot/galera_packages:/srv/buildbot/galera_packages:ro - /srv/buildbot/helper_files:/srv/buildbot/helper_files:ro + - /srv/buildbot/cloud-init:/srv/buildbot/cloud-init:ro - ./certbot/www/:/var/www/certbot/:ro - ./certbot/ssl/:/etc/nginx/ssl/:ro environment: diff --git a/docker-compose/nginx/templates/ci.conf.template b/docker-compose/nginx/templates/ci.conf.template index b1749141..7f9d2519 100644 --- a/docker-compose/nginx/templates/ci.conf.template +++ b/docker-compose/nginx/templates/ci.conf.template @@ -28,6 +28,12 @@ server { location /galera { alias /srv/buildbot/galera_packages; } + + location /cloud-init { + alias /srv/buildbot/cloud-init; + autoindex off; + } + location = /favicon.ico { access_log off; }