Ask Your Question
1

puppet dashboard not linking both filebucket md5 links

asked 2013-06-17 04:32:53 -0600

cko gravatar image

updated 2013-06-17 12:22:54 -0600

ramindk gravatar image

Hi everyone,

I have the following problem with the puppet-dashboard / filebucket "diff" functionality:

i.imgur.com/QrYb32J.png

It doesnt show the content of the "new / changed" file. I configured the client and server as instructed here:

links.puppetlabs.com/enabling_the_filebucket_viewer

Any ideas?

edit retag flag offensive close merge delete

Comments

What does it do when you click on the link? Please post your site.pp, puppet.conf and config/settings.yml for further help with troubleshooting.

GregLarkin gravatar imageGregLarkin ( 2013-06-17 15:03:52 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2013-06-17 16:34:01 -0600

GregLarkin gravatar image

updated 2013-06-18 10:55:52 -0600

The filebucket viewer documentation says that you need the following code in your site.pp file:

filebucket { "main":
  server => "{your puppet master}",
  path => false,
}

File { backup => "main" }

Have you placed that code there yet? If not, please do that and retry the scenario.

After further research, it appears that Puppet Dashboard is working as designed - only the old version of the file is linked, and the new one is not. For an explanation, please see this bug report, particularly this part:

The problem is that when Puppet modifies a file, it drops the old version of the file in the ...

(more)
edit flag offensive delete link more

Comments

Yes, i already placed that in my site.pp . I forgot to post it in my recent answer though.

cko gravatar imagecko ( 2013-06-17 16:51:35 -0600 )edit
0

answered 2014-06-06 19:39:33 -0600

Pindish gravatar image

I am having the same problem - No link to either the old file or the new file:

image description

I am using open source Puppet 3.6.1 and Dashboard 1.2.23 on Debian 7.5 x86_64.

I defined the 'main' filebucket resource in /etc/puppet/environments/development/manifests/site.pp:

filebucket { 'main':
    path   => false,
    server => 'puppet',
}

File { backup => main, }

In Dashboard settings.yml:

use_file_bucket_diffs: true  
file_bucket_server: 'puppet' 
file_bucket_port: 8140

Agent /etc/puppet/puppet.conf:

[agent]
report = true
pluginsync = true
environment = development
archive_files = true

Is there any log files I can check?

Thanks!

edit flag offensive delete link more
0

answered 2013-06-17 15:30:37 -0600

cko gravatar image

it shows the content of the file (in its previous state).

puppet.conf:

[main]
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
    pluginsync = true

[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    report = true
    runinterval = 900
    archive_files = true

[master]
    reports = store, http
    certname = puppet
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY

site.pp:

node "testnode.fqdn" { include wget }

config/settings.yml:

#---[ Values ]----------------------------------------------------------

# Node name to use when contacting the puppet master.  This is the
# CN that is used in Dashboard's certificate.
cn_name: 'dashboard'

ca_crl_path: 'certs/dashboard.ca_crl.pem'

ca_certificate_path: 'certs/dashboard.ca_cert.pem'

certificate_path: 'certs/dashboard.cert.pem'

private_key_path ...
(more)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-06-17 04:32:53 -0600

Seen: 516 times

Last updated: Jun 06 '14