Issue #16188 has been updated by Jeff McCune.
Erik Dalén wrote: > wouldn't it be acceptable that the static compiler includes this filebucket > in the catalog automatically? > Similar to how the main stage etc is added automatically by the compiler. I don't think automatically adding the resource would result in a good user experience because it would limit the ability of the end user to configure the remote server to pull content from. It's also a bit "magical" which, IMHO, is more often than not problematic. The main stage is a bit different because every catalog requires at least one stage and the stages are "internal" to the catalog behavior. The filebucket resource, on the other hand, is external and may or may not exist depending on the type of catalog. Finally, there's a pretty good argument to be made that stages aren't a model of good behavior... ---------------------------------------- Feature #16188: File content should be retrievable from remote buckets other than 'puppet' https://projects.puppetlabs.com/issues/16188#change-89888 * Author: Jeff McCune * Status: Accepted * Priority: Normal * Assignee: * Category: filebucket * Target version: 3.x * Affected Puppet version: 2.7.0 * Keywords: static_compiler static compiler filebucket FileBucket bucket file fileserver FileServer * Branch: ---------------------------------------- # Overview Currently, the only way to configure the Puppet agent to use a remote file bucket to _retrieve_ content using the static compiler is to declare a filebucket resource named `puppet`. <pre><code> filebucket { puppet: server => $server, path => false, } </code></pre> I expected the following to work: <pre> filebucket { filetest: server => $server, path => false, } file { foo: ensure => file, path => "/tmp/foo.txt", source => "puppet:///modules/filetest/foo.txt", backup => filetest } </pre> The reason I expected this to work is because the backup parameter is the only way to associate a file resource to a filebucket resource. I don't think the final solution of this bug should be to make the above example work because this is about _retrieving_ content from the file bucket when using the static compiler with a static catalog. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
