----- Original Message -----
> From: "Ronan Carty" <[email protected]>
> To: [email protected]
> Sent: Monday, October 21, 2013 1:19:50 PM
> Subject: [Puppet-dev] puppet-concat using templates
> 
> 
> Hi
> 
> I am using the puppet-concat module
> from http://github.com/puppetlabs/puppetlabs-concat'.
> 
> I simply want to add the contents of a template to my file /tmp/myfile.
> 
> The problem I have here is that each time puppets run, it adds the contents
> of the template, so my file /tmp/myfile could end up with multiple copies
> of the template contents.
> Could someone let me know if there is a way i could stop puppet from doing
> this? It works fine if I use plain text, but it does not work if I use a
> template.
> 
> 
> 
> 
> 
> 
> concat { '/tmp/myfile':
>   mode  => '0644',
>   owner => 'root',
>   group => 'root',
> }
> 
> 
> concat::fragment { 'fragment1':
>   target  => '/tmp/myfile',
>   source => '/tmp/myfile',
> }

you're adding the file to itself, thus it will always grow.

show your actual code?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to