Question

Can I set the owner or permission of the created files?

Answer

Yes, you can do this using the ''owner()'', ''group()'' and ''perm()'' options. For example:

destination d_file { file("/var/log/$HOST/log" create_dirs(yes)
->  dir_owner("log") dir_group("log") dir_perm(0600)   <-
owner("log") group("log") perm(0600)); };