summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-20 23:15:30 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-28 12:59:31 +0100
commit3d17bcff929020f0a7c555755c64b9a6ca0f43ed (patch)
tree7b0f19373c7a82c8e954156e490a33b9ca587aa7
parentprofile puppetdb remove periodic db_dump. (diff)
downloadprofiles-3d17bcff929020f0a7c555755c64b9a6ca0f43ed.tar.gz
profiles-3d17bcff929020f0a7c555755c64b9a6ca0f43ed.tar.xz
Add profile tftp.
-rw-r--r--manifests/tftp.pp21
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,
+ }
+
+}