tlu/salt/states/atftp/init.sls
Jonas Forsberg cac777ffeb .
2021-09-23 12:54:33 +02:00

28 lines
557 B
Plaintext

Install syslinux:
pkg.installed:
- name: syslinux
Install atftp:
pkg.installed:
- name: atftp
{% 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 %}
Add files to tftpboot:
file.recurse:
- name: /srv/tftpboot
- source: salt://atftp/files
- include_empty: True
Start the atftpd.socket:
service.running:
- name: atftpd.socket
- enable: True