Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure tftp root folder for RHEL8 #112

Open
fchioralia opened this issue Mar 25, 2021 · 0 comments
Open

configure tftp root folder for RHEL8 #112

fchioralia opened this issue Mar 25, 2021 · 0 comments

Comments

@fchioralia
Copy link

When daemon true in RedHat family greater then 8, the tftpd service is started with the default root folder.
A little patch if you want to configure other folder:
Using systemd: 'https://github.com/camptocamp/puppet-systemd'
in config.pp line 15 add:
if $facts['os']['family'] =~ /^(RedHat)$/ {
if versioncmp($facts['os']['release']['major'], '8') == 0 {
systemd::unit_file { 'tftp.service':
content => "
[Unit]
Description=Tftp Server
Requires=tftp.socket
Documentation=man:in.tftpd

[Service]
ExecStart=/usr/sbin/in.tftpd -s ${tftp::root}
StandardInput=socket

[Install]
Also=tftp.socket
",
}
}
}

@ekohl ekohl linked a pull request Apr 1, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant