Browse Source

install-server: Support multiple Debian releases

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 6 months ago
parent
commit
a80743e478
1 changed files with 4 additions and 2 deletions
  1. 4 2
      install-server/init.sls

+ 4 - 2
install-server/init.sls

@@ -11,14 +11,16 @@
     - require:
       - file: /srv/provision
 
-/srv/provision/preseed/apu-bullseye.txt:
+{% for osrelease in ['bullseye', 'bookworm'] %}
+/srv/provision/preseed/apu-{{ osrelease }}.txt:
   file.managed:
-    - source: salt://install-server/preseed/apu-bullseye.txt
+    - source: salt://install-server/preseed/apu-{{ osrelease }}.txt
     - template: jinja
     - context:
       provision_fqdn: {{ salt['pillar.get']('globals:provision:webserver_fqdn') }}
     - require:
       - file: /srv/provision/preseed
+{% endfor %}
 
 # Conveniece symlink for short http URL
 /srv/provision/apu.txt: