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

Improve syslinux::system class #76

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

mikerenfro
Copy link
Contributor

Pull Request (PR) description

Improve syslinux::system class

This Pull Request (PR) fixes the following issues

No issues submitted so far, but it looked like most of the development focus was on deploying syslinux from upstream sources rather than OS packages. Out of the box, the module didn't include all the files needed to present a working PXE menu.

@mikerenfro mikerenfro changed the title Feature improve syslinux system Improve syslinux::system class Mar 20, 2023
Comment on lines 21 to 24
file { "${tftp_root}/syslinux/${file}":
source => "${syslinux_dir}/${file}",
require => Package['syslinux'],
}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can manage the directory itself. If source is a directory and recurse is set to true, it should copy all files and not need an update if the files change at some point.

Suggested change
file { "${tftp_root}/syslinux/${file}":
source => "${syslinux_dir}/${file}",
require => Package['syslinux'],
}
file { "${tftp_root}/syslinux":
source => $syslinux_dir,
recurse => true,
require => Package['syslinux'],
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the changes I thought would work, but I'm getting CI errors on BSD. An extra set of eyes would be appreciated.

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

2 participants