Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 817 Bytes
#
# Cookbook Name:: sys
#
# Copyright RightScale, Inc. All rights reserved.
# All access and use subject to the RightScale Terms of Service available at
# http://www.rightscale.com/terms.php and, if applicable, other agreements such
# as a RightScale Master Subscription Agreement.
rightscale_marker
# Add re-converge task for all recipes provided in
# the space-separated reconverge_list
node[:sys][:reconverge_list].split(" ").each do |recipe|
log " Adding re-converge task for #{recipe}"
# This block calls the enable action of cookbooks/sys/providers/default.rb
# by passing in the recipe name and optional interval as the parameter.
sys_reconverge "Enable recipe re-converge" do
recipe_name recipe
interval node[:sys][:reconverge][:interval].to_i
action :enable
end
end if node[:sys]