On Jun 9, 6:28 pm, Nigel Kersten <ni...@puppetlabs.com> wrote:

> On your puppet master, make sure you have a filebucket 'main' defined, and
> that it's applying to all File resources. The easiest way is to put
> something like this in site.pp
>
> filebucket { "main": server => "debian5-1.localdomain", path => false }
>
> File { backup => "main" }
Adding the filebucket stuff is what got this working for me, after
Google found this thread.  Thanks for the tip.

> As soon as you've got this working you're going to get frustrated by:
>
> http://projects.puppetlabs.com/issues/7869
>
> where we don't actually show the diff, just the old and new files. This
> should be a relatively easy fix to implement, as we have the complete API
> for showing diffs as per:
>
> http://docs.puppetlabs.com/guides/rest_api.html#file-bucket
>
> and we know the md5 to diff with.

Yep, you're right.  This is what I want now.  +1

The diff_with option seems to work, just need it integrated into the
dashboard UI:

$ curl -k -H "Accept: s"
https://puppet:8140/production/file_bucket_file/md5/01d551248771071c449d30fec87be98f?diff_with=adce6e149a6ff677304aac194809b4d8
16c16
< test
---
> another test

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to