Issue #15193 has been updated by Jeff McCune.
For posterity the only documentation on the static compiler I've been able to find is Luke's original prototype at <https://github.com/lak/puppet-static-compiler/blob/master/README.markdown> I'm not terribly happy we merged this and released it with no documentation whatsoever. I'm going to make documentation in Puppet a requirement for this bug to be considered resolved. The required documentation I will include is: 1. How to configure the static compiler 2. How the static compiler is intended to be used 3. What the expected behavior of the static compiler is ---------------------------------------- Bug #15193: Static compiler does not work because of indirection interface changes https://projects.puppetlabs.com/issues/15193#change-69721 Author: Luke Kanies Status: Accepted Priority: Normal Assignee: Jeff McCune Category: compiler Target version: 2.7.x Affected Puppet version: 2.7.17 Keywords: Branch: The following patch is necessary to use the static compiler: diff --git a/lib/puppet/indirector/catalog/static_compiler.rb b/lib/puppet/indirector/catalog/static_compiler.rb index 1d92121..f89f351 100644 --- a/lib/puppet/indirector/catalog/static_compiler.rb +++ b/lib/puppet/indirector/catalog/static_compiler.rb @@ -130,8 +130,9 @@ class Puppet::Resource::Catalog::StaticCompiler < Puppet::Indirector::Code Puppet.info "Content for '#{resource[:source]}' already exists" else Puppet.info "Storing content for source '#{resource[:source]}'" - content = Puppet::FileServing::Content.find(resource[:source]) - Puppet::FileBucket::File.new(content.content).save + content = Puppet::FileServing::Content.indirection.find(resource[:source]) + file = Puppet::FileBucket::File.new(content.content) + Puppet::FileBucket::File.indirection.save(file) end end end I know this is a known issue, since I've seen it discussed, but it's still not fixed, and I couldn't find a filed bug. I'm assuming there are also no tests for this code, else this clear failure would have been caught. -- 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.
