[chef] Re: Re: Chef Recipe Help


Chronological Thread 
  • From: Ravindra < >
  • To:
  • Subject: [chef] Re: Re: Chef Recipe Help
  • Date: Wed, 30 Oct 2013 23:52:30 -0700 (PDT)


I’ve thrown out Ruby block and able to achieve the desired functionality.

$schedule_name = ‘’
$executable = ‘’
$schedule = ‘’

node['iceportal']['sample'].each do |tool, infoList|
 
                $schedule_name = infoList[0]
                $executable = infoList[1]
                $schedule = infoList[2]

                execute "schedule_#{tool}" do
                                command "schtasks /create /tn
\"#{$schedule_name}\" /tr
\"#{node['iceportal']['ice_tools_dir']}\\#{tool}\\#{$executable}\"
#{$schedule}"
                                action :run
                end
end


  • [chef] Re: Re: Chef Recipe Help, Ravindra, 10/30/2013

Archive powered by MHonArc 2.6.16.

§