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, } }