Chef

Cron resource: add support for setting cron environment variables like MAILTO or PATH

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.7.10
  • Fix Version/s: 0.7.12
  • Component/s: None
  • Labels:
    None

Description

The following works but is rather ugly:

cron "chef" do
minute "*/30"
command "export PATH=\"/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin\"; chef-client 2>&1 >> /var/log/chef-client.log"
end

Activity

Hide
Joshua Sierles added a comment - 28/Apr/09 12:25 PM

The MAILTO variable would be useful too

Show
Joshua Sierles added a comment - 28/Apr/09 12:25 PM The MAILTO variable would be useful too
Show
Thom May added a comment - 04/Sep/09 10:50 AM http://github.com/thommay/chef/tree/CHEF-145
Hide
AJ Christensen added a comment - 03/Oct/09 2:47 PM

Merged

Show
AJ Christensen added a comment - 03/Oct/09 2:47 PM Merged
Hide
AJ Christensen added a comment - 03/Oct/09 3:03 PM

Reopening to assign to 0.7.12rc0 version in JIRA.

Show
AJ Christensen added a comment - 03/Oct/09 3:03 PM Reopening to assign to 0.7.12rc0 version in JIRA.
Hide
AJ Christensen added a comment - 03/Oct/09 3:03 PM

Bulk assign 0.7.12rc0

Show
AJ Christensen added a comment - 03/Oct/09 3:03 PM Bulk assign 0.7.12rc0

People

Vote (0)
Watch (0)

Dates

  • Created:
    21/Feb/09 6:27 AM
    Updated:
    03/Oct/09 3:05 PM
    Resolved:
    03/Oct/09 3:05 PM