-
Notifications
You must be signed in to change notification settings - Fork 130
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
Only install directories if tftp is managed #267
Conversation
This is a bit against what I wanted with introducing the parameter, however seeing this now, I think it would probably be better to move some things from here into our tftp module, but would like to hear other maintainer's voices. The background back then was that I want to use foreman-installer to install everything needed to have a libvirt compute resource with DNS/DHCP enabled and libvirt used as TFTP server (so the regular TFTP daemon should not get installed), as that's a common small setup. When testing this on a fresh, clean system last week, however, I already ran into the problem that syslinux wasn't installed and one (or more?) needed directories were not created. |
I think the idea of the change is fine, but it should probably move to |
@dc-mattj what's the status here? |
Sorry, lost track of this one slightly. Will take a look tomorrow at the foreman_proxy::config stuff and refactor the change. |
lint fails with:
|
Sorry, my bad - fixed now |
true => Class['foreman_proxy::install', 'tftp::install'], | ||
default => Class['foreman_proxy::install'], | ||
class foreman_proxy::tftp { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superfluous newline
please update (or best extend) the tests, I cancelled all except the 2.3.0 run of this commit to save resources |
Tests updated |
Thanks @dc-mattj! |
I wonder if we should provide a |
As for the proxy side there's nothing really changing, maybe we should have a "libvirt" and a "tftpd" backend in puppet-tftp? |
I don't really know if a libvirt provider is useful to anyone in puppet-tftp, as the only useful thing being done for libvirt is creation and population of the directories and such which is done here. |
the steps of editing the libvirtd XML could be automated so tftp gets enabled |
Only install the directories and pxe files if tftp_managed is true.