Skip to content

Instantly share code, notes, and snippets.

@akasper
Created August 23, 2010 21:38
Show Gist options
  • Save akasper/546396 to your computer and use it in GitHub Desktop.
Save akasper/546396 to your computer and use it in GitHub Desktop.
if node[:instance_role] == 'util' && node[:instance_name].downcase = 'stats'
cron 'archive old logs' do
#cron stuff goes here
end
cron "process business statistics" do
#cron stuff goes here
end
cron "process publication statistics" do
#cron stuff goes here
end
cron "transfer pageviews and impressions" do
#cron stuff goes here
end
end
if node[:instance_role] == 'util' && node[:instance_name].downcase == 'sphinx'
cron "sphinx: reindex delta" do
#cron stuff goes here
end
cron "sphinx: index all" do
#cron stuff goes here
end
cron "coupons: cache" do
#cron stuff goes here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment