All pastes #2047002 Raw Edit

Someone

public ruby v1 · immutable
#2047002 ·published 2011-04-15 23:20 UTC
rendered paste body
Chef::Log.info("Starting #{cookbook_name}::#{recipe_name}")include_recipe "ims_portal_node::ims_portal_httpd"application = data_bag_item('application', 'ims_portal_node')application['packages'].each do |pname, pinfo|  package(pname) do     action :install    notifies :restart, resources(:service => node.service.httpd.name)    if (pinfo.has_key?("version"))      version pinfo['version']    end    source 'ports' if node.platform == 'freebsd'  endendcookbook_file("/etc/php.ini") do  source '/etc/php.ini'  owner 'root'  group 'root'  mode 0644  notifies :restart, resources(:service => node.service.httpd.name)endChef::Log.info("Finished #{cookbook_name}::#{recipe_name}")