8618c42599
Change-Id: Ic8cb950c7f2999d6b869c45b9e6b830760b93cd7 Closes-Bug: 1529615
30 lines
926 B
Puppet
30 lines
926 B
Puppet
# not a doc string
|
|
|
|
class cluster::neutron::ovs (
|
|
$primary = false,
|
|
$plugin_config = '/etc/neutron/plugin.ini',
|
|
) {
|
|
|
|
require cluster::neutron
|
|
|
|
$ovs_agent_package = $::neutron::params::ovs_agent_package ? {
|
|
false => $::neutron::params::package_name,
|
|
default => $::neutron::params::ovs_agent_package,
|
|
}
|
|
|
|
cluster::corosync::cs_service {'ovs':
|
|
ocf_script => 'ocf-neutron-ovs-agent',
|
|
csr_complex_type => 'clone',
|
|
csr_ms_metadata => { 'interleave' => 'true' },
|
|
csr_parameters => { 'plugin_config' => $plugin_config },
|
|
csr_mon_intr => '20',
|
|
csr_mon_timeout => '30',
|
|
csr_timeout => '80',
|
|
service_name => $::neutron::params::ovs_agent_service,
|
|
package_name => $ovs_agent_package,
|
|
service_title => 'neutron-ovs-agent-service',
|
|
primary => $primary,
|
|
hasrestart => false,
|
|
}
|
|
}
|