On Thu, Jan 26, 2012 at 13:35, krish <[email protected]> wrote:
>>I am ignoring these two files ("file1.cfg","file2.cfg"), cause they are 
>>dynamically modified by the application. So, not puppet managed.
>>And here's my problem. Because on the other hand I have to initialize both 
>>files in the first run.
>
> first application run?
> How would you generally initialize them manually?

The right answer to these problems is almost always that you have a
`file { ".../foo": ensure => present }` resource in Puppet: that will
put it in place if the file is not present, using whatever source you
give, but will not touch the content of an existing file.

If you are using a recursive file resource to put the rest of the
content in place around this, no problem, because the more specific
file resource will override the recursive one, and you won't
overwrite. :)

-- 
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

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

Reply via email to