26 lines
616 B
Plaintext
26 lines
616 B
Plaintext
|
{% set files = ['memdisk', 'poweroff.com', 'pxelinux.0', 'vesamenu.c32'] -%}
|
||
|
{% for file in files -%}
|
||
|
Linking {{ file }}:
|
||
|
file.symlink:
|
||
|
- name: /srv/tftpboot/{{ file }}
|
||
|
- target: /usr/share/syslinux/{{ file }}
|
||
|
{% endfor %}
|
||
|
|
||
|
copy bootx64.efi:
|
||
|
file.managed:
|
||
|
- name: /srv/tftpboot/bootx64.efi
|
||
|
- source: /usr/share/efi/x86_64/shim.efi
|
||
|
|
||
|
copy grub.efi:
|
||
|
file.managed:
|
||
|
- name: /srv/tftpboot/grub.efi
|
||
|
- source: /usr/share/efi/x86_64/grub.efi
|
||
|
|
||
|
Add default files to tftpboot:
|
||
|
file.recurse:
|
||
|
- name: /srv/tftpboot
|
||
|
- source: salt://pxe/files
|
||
|
- include_empty: True
|
||
|
- replace: False
|
||
|
|