Forum: Cfengine Help Subject: Re: this.promiser not interpolating in copy_from? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,22059,22064#msg-22064
Sjoerd Oostdijck Wrote: > Example: > > body common control { > bundlesequence => { "wiggle" }; > inputs => {"policies/cfengine_stdlib.cf"}; > } > > bundle agent wiggle { > files: > "/tmp/snarf.txt" > classes => > if_repaired("snarf_copied"), > perms => mog("0700","root","root"), > copy_from => > local_cp("$(this.promiser).template"); The local_cp body is expecting the master source for /tmp/snarf.txt. That is what nees to go there. Don't bother using this.promiser in this instance. I've only seen it needed when performing group changes like -exec in find. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine