Jira (PUP-10656) Provide a JSON terminus for facts

38 views
Skip to first unread message

Justin Stoller (Jira)

unread,
Sep 2, 2020, 2:05:03 PM9/2/20
to puppe...@googlegroups.com
Justin Stoller created an issue
 
Puppet / Improvement PUP-10656
Provide a JSON terminus for facts
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2020/09/02 11:04 AM
Priority: Normal Normal
Reporter: Justin Stoller

We have a YAML terminus for facts, however YAML can problematic for hexidecimal numbers (see PUP-...).

Additionally, JSON is generally a better serialization format for machines to understand, is a smaller spec than YAML, has a relatively mature ecosystem in Java around parsing/serializing, and is backwards compatible with YAML for recent YAML parsers (YAML has become a superset of JSON).

For these reasons we should implement a JSON terminus for facts (there already exists one for catalogs) and users should be encouraged to use it instead of the YAML terminus.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Justin Stoller (Jira)

unread,
Sep 2, 2020, 2:05:04 PM9/2/20
to puppe...@googlegroups.com
Justin Stoller updated an issue
Change By: Justin Stoller
Labels: puppet_7

Justin Stoller (Jira)

unread,
Sep 2, 2020, 2:09:03 PM9/2/20
to puppe...@googlegroups.com
Justin Stoller updated an issue
Change By: Justin Stoller
Labels: puppet_7 platform_7

Justin Stoller (Jira)

unread,
Sep 2, 2020, 2:10:03 PM9/2/20
to puppe...@googlegroups.com
Justin Stoller updated an issue
We have a YAML terminus for facts, however YAML can problematic for hexidecimal numbers (see PUP- ... 9505 ).


Additionally, JSON is generally a better serialization format for machines to understand, is a smaller spec than YAML, has a relatively mature ecosystem in Java around parsing/serializing, and is backwards compatible with YAML for recent YAML parsers (YAML has become a superset of JSON).

For these reasons we should implement a JSON terminus for facts (there already exists one for catalogs) and users should be encouraged to use it instead of the YAML terminus.

Josh Cooper (Jira)

unread,
Sep 2, 2020, 2:24:03 PM9/2/20
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-10656
 
Re: Provide a JSON terminus for facts

Thanks for filling Reminds me of PUP-3538, what is old is new again!

Josh Cooper (Jira)

unread,
Oct 12, 2020, 1:28:03 PM10/12/20
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-10656

Would be good to provide JSON termini for node and report

Josh Cooper (Jira)

unread,
Oct 16, 2020, 1:26:03 PM10/16/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Team: Night's Watch

Mihai Buzgau (Jira)

unread,
Oct 21, 2020, 9:15:03 AM10/21/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sub-team: ghost

Bogdan Irimie (Jira)

unread,
Oct 21, 2020, 9:15:03 AM10/21/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage

Bogdan Irimie (Jira)

unread,
Oct 21, 2020, 9:28:02 AM10/21/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Story Points: 3

Bogdan Irimie (Jira)

unread,
Oct 21, 2020, 9:46:03 AM10/21/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage ghost-28.10

Bogdan Irimie (Jira)

unread,
Oct 21, 2020, 9:48:02 AM10/21/20
to puppe...@googlegroups.com
Bogdan Irimie assigned an issue to Bogdan Irimie
Change By: Bogdan Irimie
Assignee: Bogdan Irimie

Bogdan Irimie (Jira)

unread,
Oct 21, 2020, 9:48:03 AM10/21/20
to puppe...@googlegroups.com
Bogdan Irimie assigned an issue to Florin Dragos
Change By: Bogdan Irimie
Assignee: Bogdan Irimie Florin Dragos

Josh Cooper (Jira)

unread,
Oct 23, 2020, 12:23:03 PM10/23/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Oct 23, 2020, 12:23:03 PM10/23/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.0.0

Florin Dragos (Jira)

unread,
Oct 26, 2020, 9:14:03 AM10/26/20
to puppe...@googlegroups.com
Florin Dragos updated an issue
Change By: Florin Dragos
Release Notes: New Feature
Release Notes Summary: Added new JSON terminus for puppet facts application, similar with the YAML terminus that was already there.

Josh Cooper (Jira)

unread,
Oct 26, 2020, 11:21:03 PM10/26/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Oct 28, 2020, 10:10:04 AM10/28/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
 
Change By: Bogdan Irimie
Sprint: ghost-28.10 , PR - Triage 2

Josh Cooper (Jira)

unread,
Nov 2, 2020, 8:19:03 PM11/2/20
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-10656
 
Re: Provide a JSON terminus for facts

Passed CI in d61cf32faa

Josh Cooper (Jira)

unread,
Nov 5, 2020, 4:49:03 PM11/5/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Release Notes Summary: Added This adds a new JSON terminus for puppet facts application allowing them to be stored and loaded as json. Puppet agents will continue to default to YAML , similar with but JSON can be used by configuring the "agent" application in routes.yaml:

---
agent:
  facts:
    terminus: facter
    cache: json

In addition, Puppetserver 7 caches facts *by default* as JSON instead of
YAML . The old yaml terminus that was already there can be reenabled via `routes . yaml`.

Kenyon Ralph (Jira)

unread,
Nov 5, 2020, 7:04:03 PM11/5/20
to puppe...@googlegroups.com
Kenyon Ralph updated an issue
Change By: Kenyon Ralph
We have a YAML terminus for facts, however YAML can problematic for hexidecimal hexadecimal numbers (see PUP-9505).


Additionally, JSON is generally a better serialization format for machines to understand, is a smaller spec than YAML, has a relatively mature ecosystem in Java around parsing/serializing, and is backwards compatible with YAML for recent YAML parsers (YAML has become a superset of JSON).

For these reasons we should implement a JSON terminus for facts (there already exists one for catalogs) and users should be encouraged to use it instead of the YAML terminus.

Claire Cadman (Jira)

unread,
Nov 9, 2020, 11:42:04 AM11/9/20
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: doc_reviewed platform_7

Gheorghe Popescu (Jira)

unread,
Jan 13, 2021, 9:08:03 AM1/13/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
Fix Version/s: PUP 6.20.0
Reply all
Reply to author
Forward
0 new messages