X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4bb5cdcc5d392db7cbe59e71d2b448f1f146a434..d75d177c3903975baded0a013b893fe26fe577ae:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index a81e0966c..9fa225d26 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -106,7 +106,7 @@ unless unit.nil? provider Chef::Provider::Service::Upstart action [ :enable, :start ] supports :status => true, :restart => true, :reload => false - subscribes :restart, resources(:template => "/etc/init/ttyS#{unit}.conf") + subscribes :restart, "template[/etc/init/ttyS#{unit}.conf]" end end @@ -122,7 +122,7 @@ if File.exist?("/etc/default/grub") group "root" mode 0644 variables :unit => unit, :speed => speed - notifies :run, resources(:execute => "update-grub") + notifies :run, "execute[update-grub]" end end @@ -172,8 +172,8 @@ end node[:block_device].each do |name,attributes| if attributes[:vendor] == "HP" and attributes[:model] == "LOGICAL VOLUME" - if name =~ /^cciss!(.*)$/ - status_packages["cciss-vol-status"] |= [ "cciss/#{$1}" ] + if name =~ /^cciss!(c[0-9]+)d[0-9]+$/ + status_packages["cciss-vol-status"] |= [ "cciss/#{$1}d0" ] else Dir.glob("/sys/block/#{name}/device/scsi_generic/*").each do |sg| status_packages["cciss-vol-status"] |= [ File.basename(sg) ]