cristy
2012-Dec-03 19:33 UTC
[Puppet Users] It is possible to transfer files from nodes to master?
Hi, I''m newbie to puppet, and I was wondering if it is possible to get files from nodes to master, not only in uniderictional way like master to agent nodes. To be more specific, I need to create dumps of client''s database and get it back to the server. Thank you! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mLCjSepBKoIJ. 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.
Peter Brown
2012-Dec-04 03:58 UTC
Re: [Puppet Users] It is possible to transfer files from nodes to master?
On 4 December 2012 05:33, cristy <cristynba@gmail.com> wrote:> > > Hi, > > I''m newbie to puppet, and I was wondering if it is possible to get > files from nodes to master, not only in uniderictional way like master to > agent nodes. > To be more specific, I need to create dumps of client''s database and > get it back to the server. >Kind of. Maybe. It''s theoretically possibly using exported resources but you would need to dynamically create them using some kind of exec. I can imagine how it would work but it would be pretty complex and probably not the best way to "cut your teeth" as it were. Pete.> > Thank you! > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/mLCjSepBKoIJ. > 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.
Gary Larizza
2012-Dec-04 04:36 UTC
Re: [Puppet Users] It is possible to transfer files from nodes to master?
Cristy, Puppet doesn''t have a built-in way to grab data from the client-side and save it on the Master. There IS the Filebucket (http://docs.puppetlabs.com/references/latest/type.html#filebucket http://docs.puppetlabs.com/man/filebucket.html) but that''s not something I would feel comfortable doing (it''s better for backing up a file before Puppet replaces the file). Having said that, you could have exec resources for each task (creating a database dump, sending the task to a remote server) that would model this, but you would have to specify what each task means (i.e. HOW it gets the data dump and HOW it sends it back to the Master). Does that make sense? -- Gary Larizza Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, December 3, 2012 at 11:33 AM, cristy wrote:> > > Hi, > > I''m newbie to puppet, and I was wondering if it is possible to get files from nodes to master, not only in uniderictional way like master to agent nodes. > To be more specific, I need to create dumps of client''s database and get it back to the server. > > Thank you! > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mLCjSepBKoIJ. > 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.
Peter Brown
2012-Dec-04 05:35 UTC
Re: [Puppet Users] It is possible to transfer files from nodes to master?
Hi again. It''s probably a better idea to use a dedicated backup tool to do this. Puppet wasn''t designed as a backup tool. It can likely be setup to manage the backup software and such. I personally do backups with amanda which I manage with puppet using a module I found and some extra classes to generate some exported resources to configure the actual backups on the amanda server. I use another tool to do mysql backups it''s called xtrabackup and it only does MySQL databases. I then use rsync (Also managed with puppet) to copy those backups to a backup server. Pete. On 4 December 2012 14:36, Gary Larizza <gary@puppetlabs.com> wrote:> Cristy, > > Puppet doesn''t have a built-in way to grab data from the client-side and > save it on the Master. There IS the Filebucket ( > http://docs.puppetlabs.com/references/latest/type.html#filebucket > http://docs.puppetlabs.com/man/filebucket.html) but that''s not something > I would feel comfortable doing (it''s better for backing up a file before > Puppet replaces the file). > > Having said that, you could have exec resources for each task (creating a > database dump, sending the task to a remote server) that would model this, > but you would have to specify what each task means (i.e. HOW it gets the > data dump and HOW it sends it back to the Master). > > Does that make sense? > > -- > Gary Larizza > Sent with Sparrow <http://www.sparrowmailapp.com/?sig> > > On Monday, December 3, 2012 at 11:33 AM, cristy wrote: > > > > Hi, > > I''m newbie to puppet, and I was wondering if it is possible to get > files from nodes to master, not only in uniderictional way like master to > agent nodes. > To be more specific, I need to create dumps of client''s database and > get it back to the server. > > Thank you! > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/mLCjSepBKoIJ. > 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. >-- 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.