blob: 15596b162bf4710ae57cf7c4f1ef4d29f0deb996 [file] [log] [blame]
{% 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', {})) %}