{% set server = salt['grains.filter_by']({ | |
'Common': { | |
'service': 'tftpd-hpa', | |
'path': '/var/lib/tftpboot', | |
'username': 'tftp', | |
'bind': { | |
'address': '', | |
'port': 69 | |
}, | |
'options': ['--secure'] | |
}, | |
'Debian': { | |
'pkgs': ['tftpd-hpa', 'syslinux'], | |
'config_file': '/etc/default/tftpd-hpa' | |
}, | |
'RedHat': { | |
'pkgs': ['tftp-server', 'syslinux'] | |
} | |
}, base='Common', merge=salt['grains.filter_by']({ | |
'Ubuntu': { | |
'path': '/srv/tftp' | |
}, | |
}, grain='os')) %} | |
{% do server.update(pillar.tftpd_hpa.get('server', {})) %} |