blob: 15596b162bf4710ae57cf7c4f1ef4d29f0deb996 [file] [log] [blame]
Vasyl Saienkod7005982017-04-26 13:58:15 +03001{% set server = salt['grains.filter_by']({
2 'Common': {
3 'service': 'tftpd-hpa',
4 'path': '/var/lib/tftpboot',
5 'username': 'tftp',
6 'bind': {
7 'address': '',
8 'port': 69
9 },
10 'options': ['--secure']
11 },
12 'Debian': {
13 'pkgs': ['tftpd-hpa', 'syslinux'],
14 'config_file': '/etc/default/tftpd-hpa'
15 },
16 'RedHat': {
17 'pkgs': ['tftp-server', 'syslinux']
18 }
19}, base='Common', merge=salt['grains.filter_by']({
20 'Ubuntu': {
21 'path': '/srv/tftp'
22 },
23}, grain='os')) %}
Ales Komarekb08b9cd2014-09-08 16:01:03 +020024
Vasyl Saienkod7005982017-04-26 13:58:15 +030025{% do server.update(pillar.tftpd_hpa.get('server', {})) %}