Issue #4781 has been updated by Jesse Wolfe.

Subject changed from Remote filebucket doesn't work in 2.6.1 to Filebuckets 
intended to be remote are still local
Priority changed from High to Normal
Target version changed from 2.6.2 to 2.6.x
Affected version changed from 2.6.1 to 0.25.5

I was surprised to find that this issue exists in 0.25.x as well.

There is a problem with how the parameters to the filebucket type are handled.
This bucket:
<pre>filebucket { main: server => “puppet.foo.com” }</pre>
is incorrectly interpreted as a local bucket, and is interpreted using the 
$clientbucket setting as if it was specified this way:
<pre>filebucket { main: path => “/var/lib/puppet/clientbucket/” }</pre>

To force the filebucket to honor the server name, you must explicitly unset the 
local path, like so:
<pre>filebucket { main: server => “puppet.foo.com”, path => false }</pre>

It looks to me that this error was introduced in 
d8de446995358b9ee06f943a6de90138c078756d
----------------------------------------
Bug #4781: Filebuckets intended to be remote are still local
http://projects.puppetlabs.com/issues/4781

Author: Matt Chesler
Status: Accepted
Priority: Normal
Assignee: Jesse Wolfe
Category: fileserving
Target version: 2.6.x
Affected version: 0.25.5
Keywords: filebucket remote
Branch: 


I've configured puppet to use save all modified files to the puppet master 
following the example in James Turnbull's book.  In site.pp, I have the 
following lines:

filebucket { main: server => "puppet.foo.com" }
File { backup => main }

In spite of this configuration, modified files do not get copied to the 
/var/lib/puppet/bucket directory on the puppet master.  We're running Puppet 
version 2.6.1 in Passenger, Facter version 1.5.8 on CentOS 5.3.

I've turned on debug and trace on both client and server side to attempt to 
troubleshoot this issue.  Below is the relevant log output:

Sep 15 15:07:05 test puppet-agent[7739]: FileBucket got a duplicate file 
/etc/resolv.conf ({md5}7c083e6ebc0f7aadf6a2b8ec647d1730)
Sep 15 15:07:05 test puppet-agent[7739]: 
(/Stage[main]/Dnsclient/File[/etc/resolv.conf]) Filebucketed /etc/resolv.conf 
to main with sum 7c083e6ebc0f7aadf6a2b8ec647d1730
Sep 15 15:07:05 test puppet-agent[7739]: 
(/Stage[main]/Dnsclient/File[/etc/resolv.conf]/content) content changed 
'{md5}7c083e6ebc0f7aadf6a2b8ec647d1730' to 
'{md5}a2b51c8934707ade18f79350c9c1a250'



-- 
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.

Reply via email to