
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
34 lines
1.2 KiB
Ruby
34 lines
1.2 KiB
Ruby
name "os-network"
|
|
description "Configures OpenStack networking, managed by attribute for either nova-network or quantum"
|
|
override_attributes(
|
|
"rsyslog" => {
|
|
"rhelloglist" => {
|
|
"quantum-ovsagent" => "/var/log/quantum/openvswitch-agent.log",
|
|
"quantum-dhcp" => "/var/log/quantum/dhcp-agent.log",
|
|
"quantum-l3agent" => "/var/log/quantum/l3-agent.log"
|
|
},
|
|
"debianloglist" => {
|
|
"quantum-ovsagent" => "/var/log/quantum/openvswitch-agent.log",
|
|
"quantum-dhcp" => "/var/log/quantum/dhcp-agent.log",
|
|
"quantum-l3agent" => "/var/log/quantum/l3-agent.log"
|
|
}
|
|
},
|
|
"collectd" => {
|
|
"rhel" => {
|
|
"plugins" => {
|
|
"processes" => { "ProcessMatch" => ["quantum-dhcp-agent\" \"quantum-dhcp-agent",
|
|
"quantum-l3-agent\" \"quantum-l3-agent",
|
|
"quantum-openvswitch-agent\" \"quantum-openvswitch-agent",
|
|
"quantum-metadata-agent\" \"quantum-metadata-agent"] }
|
|
}
|
|
}
|
|
}
|
|
)
|
|
run_list(
|
|
"role[os-base]",
|
|
"recipe[openstack-network::openvswitch]",
|
|
"recipe[openstack-network::l3_agent]",
|
|
"recipe[openstack-network::dhcp_agent]",
|
|
"recipe[openstack-network::metadata_agent]"
|
|
)
|