Is there a way to concat multiple files together to generate the content of a File resource? I know this can be done with templates, but wondered if there was a way to do it with straight files (without the overhead of running through ERB). [ I''m trying to do this to create an authorised_keys file holding several users; I know there''s a built-in resource to manage this, but I find it a bit cumbersome since you can''t just use a pubkey file for it, and I have all the keys I need in a different module ]. Any tips? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I could use this kind of functionality myself. Did you find a way to get this working? Best regards, Kenneth Holter On Fri, Sep 25, 2009 at 12:17 PM, Dick Davies <rasputnik@hellooperator.net>wrote:> > Is there a way to concat multiple files together to generate the > content of a File resource? > > I know this can be done with templates, but wondered if there was a > way to do it with straight > files (without the overhead of running through ERB). > > [ I''m trying to do this to create an authorised_keys file holding > several users; I know there''s > a built-in resource to manage this, but I find it a bit cumbersome > since you can''t just use a pubkey file > for it, and I have all the keys I need in a different module ]. > > Any tips? Thanks! > > --~--~---------~--~----~------------~-------~--~----~ > 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<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. 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.
Dick Davies wrote:> Is there a way to concat multiple files together to generate the > content of a File resource? >Look in David Schmitt''s modules (specifically this one): http://git.black.co.at/?p=module-common;a=summary -scott -- 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.
hello, ----- "Kenneth Holter" <kenneho.ndu@gmail.com> wrote:> I could use this kind of functionality myself. Did you find a way to > get this working?try http://nephilim.ml.org/~rip/puppet/concatfile/ -- R.I.Pienaar -- 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.