Jira (PUP-9648) Prepare Puppet for PSON removal

5 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Mar 15, 2023, 11:52:02 AM3/15/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Puppet / Improvement PUP-9648
Prepare Puppet for PSON removal
Change By: Josh Cooper
Summary: Drop Prepare Puppet for PSON support removal
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 15, 2023, 11:53:02 AM3/15/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Puppet prefers JSON but will fallback to PSON if there are binary fact values or if the catalog contains binary content, such as the {{file}} resource's {{ {} content => binary_file('/path/to/bin') { }} } . Now that rich data is supported and enabled by default, we should look into eliminating PSON support.

* Where does the fallback code live? Is it centralized or scattered around?
* There are some [mentions of PSON|https://github.com/puppetlabs/puppetserver/blob/master/src/clj/puppetlabs/services/ca/certificate_authority_core.clj#L163-L166] in the CA endpoint code. This is to support agents requesting certs in PSON. Can we drop this support?
* In what version did we add real rich data support that doesn't require PSON? That version is likely the oldest we can support if we do this. We think this happened in
[ Puppet 6 |https://tickets.puppetlabs.com/browse/PUP-8587] , which is likely too recent for this to be doable.

 

Steps:
* Use to_json instead of to_pson in cases where PSON is not required
* Guard PSON specific tests with pson feature
* Lazily load PSON based on feature

Follow on tickets to create pson gem and remove pson code from puppet.

Josh Cooper (Jira)

unread,
Mar 15, 2023, 11:53:02 AM3/15/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Story Points: 3

Josh Cooper (Jira)

unread,
Mar 15, 2023, 7:54:01 PM3/15/23
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper

Josh Cooper (Jira)

unread,
Mar 22, 2023, 2:20:02 PM3/22/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Not Needed
Release Notes Summary: Will be documented in PUP-11783
Reply all
Reply to author
Forward
0 new messages