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
group "root"
mode 0644
variables :unit => unit, :speed => speed
- notifies :run, resources(:execute => "update-grub")
+ notifies :run, "execute[update-grub]"
end
end
status_packages["cciss-vol-status"] ||= []
when "mptsas"
tools_packages << "lsiutil"
- status_packages["mpt-status"] ||= []
+ #status_packages["mpt-status"] ||= []
when "mpt2sas"
tools_packages << "sas2ircu"
status_packages["sas2ircu-status"] ||= []
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) ]