puppet-vswitch/lib/facter/ovs_uuid.rb
Tim Rozet 00de2cb906 Adds fact for uuid of OVS
This is needed for doing host config for Neutron
and OpenDaylight.

Partial-Bug: 1704206

Change-Id: I7c10aa0351a26c10bef39b311c137209fb4ffb7e
Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-07-18 13:58:23 -04:00

10 lines
219 B
Ruby

Facter.add("ovs_uuid") do
confine :kernel => "Linux"
setcode do
if File.exist? '/usr/bin/ovs-vsctl'
ovs_ver = Facter::Core::Execution.exec('/usr/bin/ovs-vsctl get Open_vSwitch . _uuid')
end
end
end