diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-20 23:15:30 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-28 12:59:31 +0100 |
commit | 3d17bcff929020f0a7c555755c64b9a6ca0f43ed (patch) | |
tree | 7b0f19373c7a82c8e954156e490a33b9ca587aa7 /manifests | |
parent | profile puppetdb remove periodic db_dump. (diff) | |
download | profiles-3d17bcff929020f0a7c555755c64b9a6ca0f43ed.tar.gz profiles-3d17bcff929020f0a7c555755c64b9a6ca0f43ed.tar.xz |
Add profile tftp.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/tftp.pp | 21 |
1 files changed, 21 insertions, 0 deletions
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, + } + +} |