r/pxe: Add directory for serving kickstarts

Now that kickstart scripts are generated from templates by a Jenkins
job, they need to be stored somewhere besides Gitea.  It makes sense to
serve them from the PXE server, since it's involved in the installation
process anyway (at least for physical machines).   Thus, we need a path
where the generated files can be uploaded by Jenkins and served by
Apache.
unifi-restore
Dustin 2025-07-03 17:35:33 -05:00
parent 6447ff5f4b
commit a23bb1f043
1 changed files with 25 additions and 0 deletions

View File

@ -34,3 +34,28 @@
- current
tags:
- permissions
- name: ensure kickstart www directory exists
file:
path: /var/www/html/kickstart
owner: root
group: root
mode: u=rwx,go=rx
state: directory
tags:
- kickstart
- name: ensure pxeadmins can write to kickstart directory
acl:
path: /var/www/html/kickstart
entity: pxeadmins
etype: group
permissions: rwX
recursive: True
default: '{{ item == "default" }}'
state: present
loop:
- default
- current
tags:
- kickstart
- permissions