cozypaul@web.de
2013-Nov-26 10:28 UTC
[Puppet Users] how to deal with xml files within Puppet ?
hi there, I have to create a new server.xml which should be build from at least 3 or 4 another xml files. How could to copy and paste with puppet methods ? On a command line under Unix I would do cat 1.xml > my_file.xml ; cat 2.xml>> my_file.xml; cat 3.xml >> my_file.xml.I have to say, I''m pretty new to puppet and simply have no clue how to tackle this task ;=( thanks a bunch in advance Cozy Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7a852529-8016-4daa-a905-2759f44a9b92%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Dan White
2013-Nov-26 13:41 UTC
Re: [Puppet Users] how to deal with xml files within Puppet ?
Based on your description, a simple concatenating module should solve the problem. Here are a few: http://forge.puppetlabs.com/modules?q=concat “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) ----- Original Message ----- From: cozypaul@web.de To: puppet-users@googlegroups.com Sent: Tuesday, November 26, 2013 5:28:11 AM Subject: [Puppet Users] how to deal with xml files within Puppet ? hi there, I have to create a new server.xml which should be build from at least 3 or 4 another xml files. How could to copy and paste with puppet methods ? On a command line under Unix I would do cat 1.xml > my_file.xml ; cat 2.xml >> my_file.xml; cat 3.xml >> my_file.xml. I have to say, I''m pretty new to puppet and simply have no clue how to tackle this task ;=( thanks a bunch in advance Cozy Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7a852529-8016-4daa-a905-2759f44a9b92%40googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1600587439.4743251.1385473306176.JavaMail.root%40sz0126a.westchester.pa.mail.comcast.net. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Nov-26 13:43 UTC
Re: [Puppet Users] how to deal with xml files within Puppet ?
OT - but that''s a little excessive. You should condense that to cat 1.xml 2.xml 3.xml >my_file.xml or even cat {1,2,3}.xml >my_file.xml Cheers, Felix On 11/26/2013 11:28 AM, cozypaul@web.de wrote:> On a command line under Unix I would do cat 1.xml > my_file.xml ; cat > 2.xml >> my_file.xml; cat 3.xml >> my_file.xml.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5294A59B.4040402%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
cozypaul@web.de
2013-Nov-26 14:25 UTC
Re: [Puppet Users] how to deal with xml files within Puppet ?
Hi Felix, thank you very much for answer, but command line was simply not an issue of my posting.Unfortunately, I''m forced to that with puppet ;=) take care Am Dienstag, 26. November 2013 14:43:55 UTC+1 schrieb Felix.Frank:> > OT - but that''s a little excessive. > > You should condense that to > > cat 1.xml 2.xml 3.xml >my_file.xml > > or even cat {1,2,3}.xml >my_file.xml > > Cheers, > Felix > > On 11/26/2013 11:28 AM, cozy...@web.de <javascript:> wrote: > > On a command line under Unix I would do cat 1.xml > my_file.xml ; cat > > 2.xml >> my_file.xml; cat 3.xml >> my_file.xml. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3c36a84e-a5b7-4195-88b8-e5163a12d4ef%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
cozypaul@web.de
2013-Nov-26 14:54 UTC
Re: [Puppet Users] how to deal with xml files within Puppet ?
Hi Ygor, based on some examples I created as follows : class my_log { $my_log = "/tmp/server.xml" concat {$my_log: owner => tomcat, group => tomcat, mode => ''0644'', } concat::fragment{"first_file.xml": target => $my_log: order => 01, } concat::fragment{"second_file.xml": target => $my_log: order => 02, } As far as I understood docus, I guess I should work.What do you think ? thanks a bunch CP Am Dienstag, 26. November 2013 14:41:46 UTC+1 schrieb Ygor:> > Based on your description, a simple concatenating module should solve the > problem. > > Here are a few: > http://forge.puppetlabs.com/modules?q=concat<http://www.google.com/url?q=http%3A%2F%2Fforge.puppetlabs.com%2Fmodules%3Fq%3Dconcat&sa=D&sntz=1&usg=AFQjCNGwUBVuu-vjvcGDfE-kgZxs8zOuqw> > > “Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > > ------------------------------ > *From: *cozy...@web.de <javascript:> > *To: *puppet...@googlegroups.com <javascript:> > *Sent: *Tuesday, November 26, 2013 5:28:11 AM > *Subject: *[Puppet Users] how to deal with xml files within Puppet ? > > hi there, > > I have to create a new server.xml which should be build from at least 3 or > 4 another xml files. How could to copy and paste with puppet methods ? > On a command line under Unix I would do cat 1.xml > my_file.xml ; cat > 2.xml >> my_file.xml; cat 3.xml >> my_file.xml. > I have to say, I''m pretty new to puppet and simply have no clue how to > tackle this task ;=( > > thanks a bunch in advance > > Cozy Paul > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/7a852529-8016-4daa-a905-2759f44a9b92%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/15de4e95-d9e0-42b1-b138-908e31f72172%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.