I''ve been looking at Redmine 2371 for a while and had been looking strictly on the code and spec testing side until yesterday, when I set up a puppetmaster and client to verify the filebuckets. I found that I''m not able to get filebuckets to work at all (via puppetd), so I''m hoping I just have a simple user error. I have verified that using the ''filebucket'' command mostly works as I expect. Can someone confirm that local filebuckets are working (via puppetd) for them on 0.25? Additionally, I''ve included my configs below, as The following are my configs: puppetmaster: geppetto puppet client: pinocchio # cat /etc/puppet/manifests/site.pp import "classes/*" filebucket { main: server => "geppetto" } File { backup => main } node default { include sudo } node ''pinocchio'' { include test_class include bucket_class } # cat /etc/puppet/manifests/classes/bucket_class.pp class bucket_class { file { "/tmp/testfile.conf": checksum => md5, owner => root, mode => 440, } } Then pinocchio just has: # cat /etc/puppet/puppet.conf [puppetd] server = geppetto I''m invoking puppetmaster as: puppetmasterd --debug --no-daemonize and puppetd as puppetd --debug --test onetime I see the following on the puppetmaster: ... debug: File[/tmp/testfile]: Adding default for backup debug: File[/tmp/testfile.conf]: Adding default for backup .. but /var/puppet/bucket stays empty. The following is the actual results of the various tests: -- tested default: determined no backups at all occur -- tested local: determined client gets error message about missing ''puppet'' (i.e., it still tries to do remote but uses default of ''puppet'' for the server name) -- tested remote with backup => main and main: server => geppetto; no backups -- tested remote with backup => main and main: server => no-such-host; no backups; no errors - ran the standalone filebucket command and confirmed it works properly for remote backups - ran the standalone filebucket command and confirmed it fails if no filebucket config exists and no -l option is given - ran the standalone filebucket command and confirmed it succeeds if no filebucket is given but -l is provided on the command-line. Thanks, Steven --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 16, 2009, at 8:08 AM, Steven Jenkins wrote:> > > I''ve been looking at Redmine 2371 for a while and had been looking > strictly on > the code and spec testing side until yesterday, when I set up a > puppetmaster and > client to verify the filebuckets. I found that I''m not able to get > filebuckets > to work at all (via puppetd), so I''m hoping I just have a simple > user error. I > have verified that using the ''filebucket'' command mostly works as I > expect. > > Can someone confirm that local filebuckets are working (via puppetd) > for them on > 0.25? Additionally, I''ve included my configs below, asI confirmed both local and remote in the course of my own testing of this bug. I always go singificantly simpler than your config; I do my best to stick to just a single test.pp file. For instance, I''ll start my master like this: sbin/puppetmasterd --verbose --no-daemonize --confdir /tmp/ plugintesting --vardir /tmp/plugintesting --manifest ~/bin/test.pp -- modulepath ~/.puppet/modules --certdnsnames localhost And then I''ll start puppetd like this: sudo sbin/puppetd --test --confdir /tmp/plugintesting/ --vardir /tmp/ plugintesting --no-daemonize --server localhost --pluginsync I use a new /tmp directory for every set of tests, so I know I''m always starting from scratch, and I''m not getting an artifact from some other setup. With that setup plus a single filebucket and a single file managing its content, I got backups all around. -- Someday I want to be rich. Some people get so rich they lose all respect for humanity. That''s how rich I want to be. --Rita Rudner --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---