Manage more parameters extension - #141
Conversation
|
Would you mind rebasing instead of merging? |
dcbdc47 to
c20b1ad
Compare
I fixed the mess I made in the commits and rebased. |
c20b1ad to
8030ed5
Compare
ekohl
left a comment
There was a problem hiding this comment.
Perhaps port listening in acceptance tests can be properly tested now that the service always runs.
Included in 64de477 |
64de477 to
5bb987f
Compare
4544fd7 to
e9715f4
Compare
|
I'm sorry we didn't get to work this out at cfgmgmtcamp, but I've taken the liberty to rebase your commits and force push it. Checking what CI says now. |
e9715f4 to
8ffb6e4
Compare
|
Hi, thanks for remembering! I was...too tired..after Mondays evening to produce any values. We have to address one more thing that I realized while using the proposed changes. For RHEL - the tftp.socket service is running all the time (as it should), but tftp.service deactivates itself after 15 minutes without receiving any reguests. If requests come it (tftp.socket) keeps the tftp.service running or starts it. If the tftp.service is exited, then Puppet starts the service and the whole cycle continues. We manage both services (and ensure=running) to be able to reliably reload the service when the config file of the service is changed. Any tips how to solve this on the Puppet level, or should I look into the config of tftp.service if its possible to keep it running without the 15min "TTL" ? |
This includes - making changes to allow CI to pass such as adjusting the fixtures and fixing both the spec tests and the acceptance tests - sorting some code sections by OS in both CI files and puppet manifests - fixing the service name in `templates/tftp.service-override.epp` - creating `templates/tftp.socket-override.epp` - creating `templates/tftpd-archlinux.epp` - renaming the tftpd-hpa template used by Debian because they do things differently than other distros with regards to the config file - creating `templates/tftpd.epp` - normalizing formatting of data so that all strings are single quoted Regarding switching ArchLinux from using a socket to the service directly, this appears to be what all the docs for Arch assume you are already doing and is the only way I found to configure Arch that passed the acceptance tests. Changes mostly originated from these PRs: - theforeman#141 - theforeman#160 Co-authored-by: Tim Meusel <tim@bastelfreak.de> Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com> Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> Co-authored-by: Antonin Dvorak <antonin.dvorak@cern.ch>
This includes - making changes to allow CI to pass such as adjusting the fixtures and fixing both the spec tests and the acceptance tests - sorting some code sections by OS in both CI files and puppet manifests - fixing the service name in `templates/tftp.service-override.epp` - creating `templates/tftp.socket-override.epp` - creating `templates/tftpd-archlinux.epp` - renaming the tftpd-hpa template used by Debian because they do things differently than other distros with regards to the config file - creating `templates/tftpd.epp` - normalizing formatting of data so that all strings are single quoted Regarding switching ArchLinux from using a socket to the service directly, this appears to be what all the docs for Arch assume you are already doing and is the only way I found to configure Arch that passed the acceptance tests. Changes mostly originated from these PRs: - theforeman#141 - theforeman#160 Co-authored-by: Tim Meusel <tim@bastelfreak.de> Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com> Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> Co-authored-by: Antonin Dvorak <antonin.dvorak@cern.ch>
This includes - making changes to allow CI to pass such as adjusting the fixtures and fixing both the spec tests and the acceptance tests - sorting some code sections by OS in both CI files and puppet manifests - fixing the service name in `templates/tftp.service-override.epp` - creating `templates/tftp.socket-override.epp` - creating `templates/tftpd-archlinux.epp` - renaming the tftpd-hpa template used by Debian because they do things differently than other distros with regards to the config file - creating `templates/tftpd.epp` - normalizing formatting of data so that all strings are single quoted - removing usage of legacy facts in spec files Regarding switching ArchLinux from using a socket to the service directly, this appears to be what all the docs for Arch assume you are already doing and is the only way I found to configure Arch that passed the acceptance tests. Changes mostly originated from these PRs: - theforeman#141 - theforeman#160 Co-authored-by: Tim Meusel <tim@bastelfreak.de> Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com> Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> Co-authored-by: Antonin Dvorak <antonin.dvorak@cern.ch>
* More flexibility in configuration * fixtures: update puppet-systemd URL to voxpupuli * convert Debian options file template to EPP * RedHat: add default tftp::options * config: add unit tests for tftp::options This also adjusts the name of the dropin file for RedHat, since root-directory.conf didn't seem to make sense since this configures more than just the tftpd root directory. * init: don't allow empty strings for $username Co-authored-by: Tim Meusel <tim@bastelfreak.de> * init: don't allow empty strings for $options Co-authored-by: Tim Meusel <tim@bastelfreak.de> * tftpd-hpa.epp: add comment about Puppet management * Switch Arch from socket to service, fixup other PR's stuff This includes - making changes to allow CI to pass such as adjusting the fixtures and fixing both the spec tests and the acceptance tests - sorting some code sections by OS in both CI files and puppet manifests - fixing the service name in `templates/tftp.service-override.epp` - creating `templates/tftp.socket-override.epp` - creating `templates/tftpd-archlinux.epp` - renaming the tftpd-hpa template used by Debian because they do things differently than other distros with regards to the config file - creating `templates/tftpd.epp` - normalizing formatting of data so that all strings are single quoted - removing usage of legacy facts in spec files Regarding switching ArchLinux from using a socket to the service directly, this appears to be what all the docs for Arch assume you are already doing and is the only way I found to configure Arch that passed the acceptance tests. Changes mostly originated from these PRs: - #141 - #160 Co-authored-by: Tim Meusel <tim@bastelfreak.de> Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com> Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> Co-authored-by: Antonin Dvorak <antonin.dvorak@cern.ch> --------- Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com> Co-authored-by: Tim Meusel <tim@bastelfreak.de> Co-authored-by: Antonin Dvorak <antonin.dvorak@cern.ch>
|
FWIW, portions of this were merged in via #162 |
Extends #115