blob: 64fee22ba686f86f99b499b5609efdb0e64d5ff0 [file] [log] [blame]
{%- load_yaml as raw_server %}
Debian:
pkgs:
- tftpd-hpa
- syslinux
{%- if salt['grains.get']('os') == 'Ubuntu' %}
path: /var/lib/tftpboot
{%- else %}
path: /srv/tftp
{%- endif %}
service: tftpd-hpa
RedHat:
pkgs:
- tftp-server
- syslinux
root: /var/lib/tftpboot/
service: tftpd-hpa
{%- endload %}
{%- set server = salt['grains.filter_by'](raw_server, merge=salt['pillar.get']('tftpd_hpa:server')) %}