On Thu, Jun 9, 2011 at 3:28 PM, Nigel Kersten <ni...@puppetlabs.com> wrote:

>
>
> On Wed, May 4, 2011 at 2:20 PM, treydock <treyd...@gmail.com> wrote:
>
>> In my puppet-dashboard when a change is made to files and it shows the
>> MD5 sums I am never presented a link to view the file or any diffs of
>> those files.  I assume that the text between '[' and ']' is supposed
>> to be the link but it's just plain text.  This is when viewing
>> individual reports in Puppet-dashboard.  I can expand the line under
>> "Events" where that change is recorded.
>>
>> Here's an example...
>>
>> notice  content changed '{md5}7a8ec7feb2846a2cffd246b67d3d7842' to
>> '{md5}a6175c11d9055942d7970258422b7cdd' /Stage[main]/Sudo/File[/etc/
>> sudoers]/content        /etc/puppet/modules/sudo/manifests/init.pp      12
>> 2011-05-03 10:29 CDT
>>
>> Nothing in the report is a linked field to allow me to few either
>> filebucket contents or a diff.  I do not know where to begin in
>> troubleshooting this as I am seeing absolutely no errors in any log
>> files.  I'm running puppet, and puppetmaster 2.6.8 and dashboard
>> 1.1.0.  The dashboard is hosted on an Apache server using Passenger.
>> If there are some debugging or troubleshooting steps that may help
>> narrow this down please let me know.
>>
>
> We *very* much need to improve the documentation here, but you need to:
>
> copy config/settings.yml.example to config/settings.yml
>
> * set up a certificate/key for Dashboard so it can communicate over the API
> to the filebucket. This is probably easiest done with "puppet cert generate
> ...." on your CA then copying the files across to your Dashboard (assuming
> they're on different machines)
>
>
> * fill in all the SSL cert/key settings in settings.yml
>
> * fill in the file_bucket_server address in settings.yml
>
> * set use_file_bucket_diffs: true in settings.yml
>
> 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" }
>
> This sets the server for filebucket to "debian..." (replace with your
> server) and sets a resource default so all File resources use this
> filebucket.
>
> Then when you run on your nodes, they'll backup file changes to the
> filebucket, and when they send reports to the dashboard, the md5{} checksums
> will be links to the filebucket.
>
> 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.
>

That all being said... it's great to see someone looking at this feature,
and I highly encourage you to file bug reports against the project until
we've got things into a reasonable state.

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