Repository navigation
feat: replace puppet config commands with helper script - #144
Merged
MirandaStreeter merged 7 commits intoJun 24, 2026
Merged
Conversation
Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
rwaffen
previously approved these changes
Jun 18, 2026
rwaffen
left a comment
Member
There was a problem hiding this comment.
LGTM, but one question, but this shouldn't block the merge
inifile.rb doesn't make any Puppet.* calls, we only need the Puppet::Settings namespace. As a result we can stub it and speed up the INI manipulator significantly. Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
MirandaStreeter
commented
Jun 19, 2026
MirandaStreeter
commented
Jun 19, 2026
I could always use dot-sourcing but that's just not nearly as readable. Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
rwaffen
approved these changes
Jun 24, 2026
Contributor
Author
|
Okay, I think I'm happy with this. But apologies, it looks like my vim's auto formatter adjusted a few unrelated bits of if/then statements in shell scripts. If you want me to revert those in order to keep a slightly cleaner diff let me know, else I'll merge. |
Member
|
go for it.... I don’t mind the style changes here. :D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Short description
This replaces the various
puppet configcommands with a small helper library that takes the values and manipulates them directly viaPuppet::Settings::IniFile, saving us a huge chunk of startup time.Part of #139
At first I tried using a series of
export <variable>for readability, but the entrypoint sequence modifies the results partway, and later entries rely on those modifications, of which they cannot inherent each other's environment. So instead we create a cache file and read/write from that.In the future I strongly believe we should hardcode many of these values. The more immutable the better. :)
Checklist
I have:
Signed-off-byannotation to each of my commitsGenerated-byorAssisted-byannotations to each of my commits created with the help of an AI agent