Vasyl Saienko | d700598 | 2017-04-26 13:58:15 +0300 | [diff] [blame] | 1 | {% 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 Komarek | b08b9cd | 2014-09-08 16:01:03 +0200 | [diff] [blame] | 24 | |
Vasyl Saienko | d700598 | 2017-04-26 13:58:15 +0300 | [diff] [blame] | 25 | {% do server.update(pillar.tftpd_hpa.get('server', {})) %} |