Skip to content

feat: replace puppet config commands with helper script - #144

Merged
MirandaStreeter merged 7 commits into
OpenVoxProject:mainfrom
MirandaStreeter:batch_puppet_config
Jun 24, 2026
Merged

MirandaStreeter merged 7 commits into
OpenVoxProject:mainfrom
MirandaStreeter:batch_puppet_config

Conversation

@MirandaStreeter

Copy link
Copy Markdown
Contributor

Short description

This replaces the various puppet config commands with a small helper library that takes the values and manipulates them directly via Puppet::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-by: Miranda Streeter <miranda@mirandastreeter.com>
Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
rwaffen
rwaffen previously approved these changes Jun 18, 2026

@rwaffen rwaffen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but one question, but this shouldn't block the merge

@rwaffen rwaffen added the enhancement New feature or request label Jun 18, 2026
rwaffen and others added 2 commits June 19, 2026 09:12
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>
I could always use dot-sourcing but that's just
not nearly as readable.

Signed-off-by: Miranda Streeter <miranda@mirandastreeter.com>
@rwaffen rwaffen changed the title Batch puppet config feat: replace puppet config commands with helper script Jun 23, 2026
@MirandaStreeter

Copy link
Copy Markdown
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.

@rwaffen

rwaffen commented Jun 24, 2026

Copy link
Copy Markdown
Member

go for it.... I don’t mind the style changes here. :D

@MirandaStreeter
MirandaStreeter merged commit bf6a840 into OpenVoxProject:main Jun 24, 2026
17 checks passed
@MirandaStreeter
MirandaStreeter deleted the batch_puppet_config branch June 24, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants