summaryrefslogtreecommitdiff
path: root/manifests/tftp.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/tftp.pp')
-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,
+ }
+
+}