On Fri, 11 Mar 2011 18:56:55 +0100 Eystein Måløy Stenberg <eystein.stenb...@gmail.com> wrote:
EMS> You can set the environment in agent control: EMS> http://www.cfengine.org/manuals/cf3-reference.html#environment-in-agent EMS> This is a global setting that will be inherited by all children EMS> (commands-promises and backgrounded/forked agent jobs). That's useful but not secure. For instance I need my Amazon S3 keys in environment variables; I wouldn't want them to be passed to all the commands I run, only the ones that talk to S3. EMS> I am not aware of a way to set this on a per-command basis, but this EMS> seems useful. EMS> Perhaps it belongs in body contain: EMS> http://www.cfengine.org/manuals/cf3-reference.html#contain-in-commands EMS> If you can't find it, would you mind making a feature request at EMS> http://bug.cfengine.com? EMS> It should be trivial to implement (unless there are implications I don't see). I don't have an account there yet and my Engine Room and Support accounts don't work on that tracker. I requested the account; could you or someone else do the feature request meanwhile? I'm also not sure how the syntax would look. Maybe the environment should be just a slist of "A=b" parameters? But then it's complicated to augment or remove parameters. I sometimes wish cfengine had a Perl escape hatch :) Thanks Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine