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

Add option to disable passing plist as binary to avoid PSON render #16

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

Conversation

gavinelder
Copy link
Contributor

Hey 👋 ,

I found that the binary argument in file_source => plist($profile, binary) seems unnecessary. Including it causes the Puppet-generated catalog to contain binary info, which can make the JSON compile fail and fall back to PSON which is now deprecated.

I've tested it without the binary argument, and everything seems to work fine, Looking at puppet-munki which does not use binary there is no reported issues with using this method. https://github.com/airbnb/puppet-munki/blob/92598857d676a4d48e05501b23a6a9664c5b7c2e/manifests/config.pp#L112-L116

However, I might be missing some context for why it's there in the first place. If anyone knows the reason or believes this will cause an issues, please let me know.

@grahamgilbert
Copy link
Contributor

It is there because big log entries cause older versions of puppet to crash. If we are making this change, we need to test back to older versions and document the oldest supported version.

@gavinelder gavinelder changed the title Don't pass plist as binary to avoid PSON render Add option to disable passing plist as binary to avoid PSON render May 7, 2023
@gavinelder
Copy link
Contributor Author

Thanks @grahamgilbert for the context , I have now changed this to an optional value to enable or disable the passing of the content as binary or not.

The default remains true as to keep behaviour for existing users and to not break backwards compatibility removing the need to test against older versions & to not change the behaviours expected from this puppet module.

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.

2 participants