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

Only install directories if tftp is managed #267

Merged
merged 1 commit into from
Sep 15, 2016
Merged

Only install directories if tftp is managed #267

merged 1 commit into from
Sep 15, 2016

Conversation

mattj-io
Copy link
Contributor

Only install the directories and pxe files if tftp_managed is true.

@mmoll
Copy link
Contributor

mmoll commented Jul 22, 2016

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.

@domcleal
Copy link
Contributor

I think the idea of the change is fine, but it should probably move to foreman_proxy::config in the same way that dhcp_managed works.

@mmoll
Copy link
Contributor

mmoll commented Sep 3, 2016

@dc-mattj what's the status here?

@mattj-io
Copy link
Contributor Author

mattj-io commented Sep 4, 2016

Sorry, lost track of this one slightly. Will take a look tomorrow at the foreman_proxy::config stuff and refactor the change.

@mmoll
Copy link
Contributor

mmoll commented Sep 5, 2016

lint fails with:

manifests/tftp.pp:18:WARNING: top-scope variable being used without an explicit namespace
manifests/tftp.pp:3:ERROR: trailing whitespace found

@mattj-io
Copy link
Contributor Author

mattj-io commented Sep 6, 2016

Sorry, my bad - fixed now

true => Class['foreman_proxy::install', 'tftp::install'],
default => Class['foreman_proxy::install'],
class foreman_proxy::tftp {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

superfluous newline

@mmoll
Copy link
Contributor

mmoll commented Sep 6, 2016

please update (or best extend) the tests, I cancelled all except the 2.3.0 run of this commit to save resources

@mattj-io
Copy link
Contributor Author

Tests updated

@domcleal domcleal merged commit 7e24c97 into theforeman:master Sep 15, 2016
@domcleal
Copy link
Contributor

Thanks @dc-mattj!

@ekohl
Copy link
Member

ekohl commented Sep 15, 2016

I wonder if we should provide a tftp_provider. This could allow using libvirt but initially a noop provider that just places the files could help theforeman/forklift#295

@mmoll
Copy link
Contributor

mmoll commented Sep 15, 2016

As for the proxy side there's nothing really changing, maybe we should have a "libvirt" and a "tftpd" backend in puppet-tftp?

@stbenjam
Copy link
Member

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.

@mmoll
Copy link
Contributor

mmoll commented Sep 15, 2016

the steps of editing the libvirtd XML could be automated so tftp gets enabled

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 this pull request may close these issues.

None yet

5 participants