summaryrefslogtreecommitdiff
path: root/manifests/tftp.pp
blob: e2abe5661c2df98adc2db0ba18282a0b2359c8d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class profiles::tftp (
  String $tftp_root = '/srv/tftp',
) {
  ensure_packages(['tftp-hpa'])

  file { '/etc/conf.d/tftpd':
    content => "TFTPD_ARGS=\"--secure ${tftp_root}\"\n",
    notify  => Service['tftpd'],
  }

  # Here to accept notify
  service { 'tftpd':
  }

  # What we actually want to start
  service { 'tftpd.socket':
    ensure => true,
    enable => true,
  }

}