compass-adapters/chef/roles/os-block-storage-worker.rb
Jerry Zhao be92856f20 Use ProcessMatch to filter processnames
ProcessMatch provides more flexibility in handling process names,
especially in scenarios across platforms and openstack releases.
To do: generalize process regex across linux distros and openstack
releases.

Change-Id: I7dae9a90407134f01d5c9fbb722db62844197e47
2014-08-12 14:46:03 -07:00

24 lines
578 B
Ruby

name "os-block-storage-worker"
description "OpenStack Block Storage worker"
override_attributes(
"rsyslog" => {
"rhelloglist" => {
"cinder-volume" => "/var/log/cinder/volume.log"
},
"debianloglist" => {
"cinder-volume" => "/var/log/cinder/cinder-volume.log"
}
},
"collectd" => {
"rhel" => {
"plugins" => {
"processes" => { "ProcessMatch" => ["cinder-volume\" \"cinder-volume", "iscsid\" \"iscsid", "multipathd\" \"multipathd"] }
}
}
}
)
run_list(
"role[os-base]",
"recipe[openstack-block-storage::volume]"
)