Issue #16058 has been updated by Jeff McCune. Tracker changed from Bug to Feature Category set to settings Keywords set to json terminus cache catalog
---------------------------------------- Feature #16058: Need a way to configure JSON catalog serialization https://projects.puppetlabs.com/issues/16058#change-69878 Author: eric sorenson Status: Accepted Priority: Normal Assignee: Category: settings Target version: 3.0.0 Affected Puppet version: Keywords: json terminus cache catalog Branch: In #2892, Daniel added a cool new JSON catalog terminus that has some good performance upside. But that patch doesn't provide a way to configure the agent to actually use it. This should be an exposed setting on the agent, with a default to json in 3.0.0. (YAML still needs to be selectable, but probably deprecated, because people may have tools that use the local cache directly) >From email, Luke found this change exercised the patch, so it's where the >setting ought to be applied: <pre> diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb index a0aef3b..a6de5e5 100644 --- a/lib/puppet/application/agent.rb +++ b/lib/puppet/application/agent.rb @@ -460,7 +460,7 @@ Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License # we want the last report to be persisted locally Puppet::Transaction::Report.indirection.cache_class = :yaml - Puppet::Resource::Catalog.indirection.cache_class = :yaml + Puppet::Resource::Catalog.indirection.cache_class = :json unless options[:fingerprint] setup_agent </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
