[email protected] wrote:
> Happy New Year everyone,
>
> While working with the new standard library I notice two things. First,
> there lacks a body to change just ownership. There is one for mode, mode
> and user, mode user and group, and finally just user. So adding this
> would be helpful:
> body perms og(u,g) {
> owners => { "${u}" };
> groups => { "${g}" };
> }
There was actually "owner" but not consistent, so I added yours.
> The second thing I noticed was the remote copy body.
> body copy_from remote_cp(from,server)
> {
> servers => { "$(server)" };
> source => "$(from)";
> compare => "mtime";
> }
>
> Although comparing using mtime is efficient I don't think that it
> outweighs its uncertainty. File times can change for many reasons good,
> accidental and nefarious. I think that comparing hashes would be more
> prudent.
My thinking here is that you typically want fast or secure, and adding this
check is
actually more expensive than encrytion, so remote_cp is for transferring lots
of data.
What do others think? Another different name or just change this?
M
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine