puppetlabs / puppetlabs-concat

File concatenation system for Puppet
Apache License 2.0
171 stars 303 forks source link

concat::fragment does not append a string to a file #811

Closed apt4user closed 3 months ago

apt4user commented 3 months ago

Describe the Bug

I've installed the module puppetlabs-concat version 8.0.1 but when I declare

concat { '/path/to/file':
  ensure => present,
}

concat::fragment { 'tmpfile':
   target  => '/path/to/file',
   content => 'test contents',
   order   => 'ZZ'
}

and after that, when i perform a puppet run, the file gets overridden

Expected Behavior

I wanted to append a string to an existing file

Steps to Reproduce

Steps to reproduce the behavior: Apply the above mentioned code

Environment

kenyon commented 3 months ago

This module isn't used for appending to existing files like that.

apt4user commented 3 months ago

Thank you for your help. Then I misunderstood the module.