Is there a way to copy file(s) from the Puppet agent back to the master? I know it sounds silly but that''s what I need to do. This is one of the s/w-tag files, gets created/modified automatically by the software installation job and then I want to overwrite the tag files on two other agents with this one. Is there a why for doing this? Cheers, San -- 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.
Christopher Johnston
2012-Jan-09 16:14 UTC
Re: [Puppet Users] copying file(s) from agent to master??
I think you want to use the filebucket setup for this, I am not 100% familiar with it though. On Mon, Jan 9, 2012 at 10:50 AM, Sans <r.santanu.das@gmail.com> wrote:> Is there a way to copy file(s) from the Puppet agent back to the > master? I know it sounds silly but that''s what I need to do. This is > one of the s/w-tag files, gets created/modified automatically by the > software installation job and then I want to overwrite the tag files > on two other agents with this one. Is there a why for doing this? > > Cheers, > San > > -- > 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. > >-- 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.
Eric Shamow
2012-Jan-09 17:57 UTC
Re: [Puppet Users] copying file(s) from agent to master??
Filebucket is the right answer. Good docs on it here: http://docs.puppetlabs.com/references/stable/type.html#file And also the command-line utility to query or manage the bucket: http://docs.puppetlabs.com/man/filebucket.html -Erc -- Eric Shamow Professional Services http://puppetlabs.com/ (c)631.871.6441 On Monday, January 9, 2012 at 11:14 AM, Christopher Johnston wrote:> I think you want to use the filebucket setup for this, I am not 100% familiar with it though. > > On Mon, Jan 9, 2012 at 10:50 AM, Sans <r.santanu.das@gmail.com (mailto:r.santanu.das@gmail.com)> wrote: > > Is there a way to copy file(s) from the Puppet agent back to the > > master? I know it sounds silly but that''s what I need to do. This is > > one of the s/w-tag files, gets created/modified automatically by the > > software installation job and then I want to overwrite the tag files > > on two other agents with this one. Is there a why for doing this? > > > > Cheers, > > San > > > > -- > > 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 (mailto:puppet-users@googlegroups.com). > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users%2Bunsubscribe@googlegroups.com). > > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > > > > -- > 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 (mailto:puppet-users@googlegroups.com). > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- 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.
Thanks Eric and Chris! If I understood correctly, I put something like this in the ''/etc/ puppet/manifests/site.pp'' filebucket { ''main'': server => ''puppet.hep.ac.uk'', path => false, } and then I set "backup => main" in one my "file" definitions but it doesn''t seem to be working. after that I don''t see the file (or "hash") in the "/var/lib/puppet/clientbucket" (or bucket) at all. Am I doing the right thing? Cheers!! On Jan 9, 5:57 pm, Eric Shamow <e...@puppetlabs.com> wrote:> Filebucket is the right answer. Good docs on it here: > > http://docs.puppetlabs.com/references/stable/type.html#file > > And also the command-line utility to query or manage the bucket: > > http://docs.puppetlabs.com/man/filebucket.html > > -Erc > > -- > > Eric Shamow > Professional Serviceshttp://puppetlabs.com/ > (c)631.871.6441 > > > > > > > > On Monday, January 9, 2012 at 11:14 AM, Christopher Johnston wrote: > > I think you want to use the filebucket setup for this, I am not 100% familiar with it though. > > > On Mon, Jan 9, 2012 at 10:50 AM, Sans <r.santanu....@gmail.com (mailto:r.santanu....@gmail.com)> wrote: > > > Is there a way to copy file(s) from the Puppet agent back to the > > > master? I know it sounds silly but that''s what I need to do. This is > > > one of the s/w-tag files, gets created/modified automatically by the > > > software installation job and then I want to overwrite the tag files > > > on two other agents with this one. Is there a why for doing this? > > > > Cheers, > > > San > > > > -- > > > 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 (mailto:puppet-users@googlegroups.com). > > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users%2Bunsubscribe@googlegroups.com). > > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > > -- > > 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 (mailto:puppet-users@googlegroups.com). > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.-- 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.
Nan Liu
2012-Jan-11 06:12 UTC
Re: [Puppet Users] Re: copying file(s) from agent to master??
On Tue, Jan 10, 2012 at 8:31 AM, Sans <r.santanu.das@gmail.com> wrote:> Thanks Eric and Chris! > > If I understood correctly, I put something like this in the ''/etc/ > puppet/manifests/site.pp'' > > filebucket { ''main'': > server => ''puppet.hep.ac.uk'', > path => false, > } > > and then I set "backup => main" in one my "file" definitions but it > doesn''t seem to be working. after that I don''t see the file (or > "hash") in the "/var/lib/puppet/clientbucket" (or bucket) at all. Am I > doing the right thing?I think it''s /var/lib/puppet/bucket instead of clientbucket on the server side. Thanks, Nan -- 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 Jan 11, 6:12 am, Nan Liu <n...@puppetlabs.com> wrote:> > I think it''s /var/lib/puppet/bucket instead of clientbucket on the server side. >As I already said: don''t see it in the "/var/lib/puppet/bucket" either. Hope I''m not missing anything here. cheers!! -- 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.
Nan Liu
2012-Jan-12 08:30 UTC
Re: [Puppet Users] Re: copying file(s) from agent to master??
On Wed, Jan 11, 2012 at 5:52 AM, Sans <r.santanu.das@gmail.com> wrote:> On Jan 11, 6:12 am, Nan Liu <n...@puppetlabs.com> wrote: >> >> I think it''s /var/lib/puppet/bucket instead of clientbucket on the server side. >> > > As I already said: don''t see it in the "/var/lib/puppet/bucket" > either. Hope I''m not missing anything here. cheers!!Oops, sorry last reply was a bit hasty. The only other thought off the top of my head is check when you run puppet agent you saw this line: Filebucketed {some file name matching your resource} to main with sum 1d3a4685... I would do a search of your file system based on that full md5 checksum. You can also try puppet filebucket command to see if everything is working: $ puppet filebucket --remote --server master.puppetlabs.lan backup /etc/passwd /etc/passwd: e93193e6b2904c726abcf3f1908d24b7 Result against puppet enterprise server: /var/opt/lib/pe-puppet/bucket/e/9/3/1/9/3/e/6/e93193e6b2904c726abcf3f1908d24b7 Thanks, Nan -- 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.