Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Improve syslinux::system class#76

Open
mikerenfro wants to merge 13 commits intovoxpupuli:masterfrom
mikerenfro:feature_improve_syslinux_system
Open

Improve syslinux::system class#76
mikerenfro wants to merge 13 commits intovoxpupuli:masterfrom
mikerenfro:feature_improve_syslinux_system

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants