15 lines
338 B
Ruby
15 lines
338 B
Ruby
Puppet::Type.type(:neutron_agent_ovs).provide(
|
|
:ini_setting,
|
|
:parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
|
|
) do
|
|
|
|
def file_path
|
|
if Facter['operatingsystem'].value == 'Ubuntu'
|
|
'/etc/neutron/plugins/ml2/ml2_conf.ini'
|
|
else
|
|
'/etc/neutron/plugins/ml2/openvswitch_agent.ini'
|
|
end
|
|
end
|
|
|
|
end
|