syntaxt to cat files together

2 views
Skip to first unread message

Dick Davies

unread,
Sep 25, 2009, 7:17:09 AM9/25/09
to puppet...@googlegroups.com
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!

Kenneth Holter

unread,
Dec 28, 2009, 5:35:12 AM12/28/09
to puppet...@googlegroups.com
I could use this kind of functionality myself. Did you find a way to get this working?
 
 
Best regards,
Kenneth Holter

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com
To unsubscribe from this group, send email to puppet-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Scott Smith

unread,
Dec 28, 2009, 12:05:45 PM12/28/09
to puppet...@googlegroups.com
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

R.I.Pienaar

unread,
Dec 28, 2009, 12:06:48 PM12/28/09
to puppet...@googlegroups.com
hello,


----- "Kenneth Holter" <kenne...@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

Reply all
Reply to author
Forward
0 new messages