Forum: CFEngine Help Subject: Re: ?? custom 'compare' option in 'copy_from' ?? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,22890,22898#msg-22898
The first solution in that recipe is a file copy not an edit. bundle agent recipe { files: "/home/neil/.ssh/authorized_keys" handle => "neil_ssh_pub", comment => "Install Neil's public ssh key", perms => mog("0600", "neil", "neil"), copy_from => remote_cp("/var/cf-masterfiles/sshkeys/neil-pub","venus"); } This does what you describe. Only copy if there is a difference. Also see here for a better understanding of what surrounds this bundle. http://watson-wilson.ca/2011/05/cfengine-3-cookbook-begins.html _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine