From 3d17bcff929020f0a7c555755c64b9a6ca0f43ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 20 Feb 2022 23:15:30 +0100 Subject: Add profile tftp. --- manifests/tftp.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 manifests/tftp.pp diff --git a/manifests/tftp.pp b/manifests/tftp.pp new file mode 100644 index 0000000..e2abe56 --- /dev/null +++ b/manifests/tftp.pp @@ -0,0 +1,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, + } + +} -- cgit v1.2.3