saltstack/salt — pull request #1320 by dreinhold (2012-05-22 07:11:16+00:00)
Title: Cron Module - Add Support for Environment Variables

Code for [Issue 886] (https://github.com/saltstack/salt/issues/886)

* Allow setting and removing of environment variables in crontabs
* Not passing a value after the name of the variable will create
a variable set to =""
EXAMPLES
Setting MAILTO=user@example.com in root cron
salt '*' cron.set_env root MAILTO user@example.com
Setting a blank MAILTO=""
salt '*' cron.set_env root MAILTO