Merge "Adds fact for uuid of OVS"

This commit is contained in:
Jenkins
2017-07-22 02:59:00 +00:00
committed by Gerrit Code Review
2 changed files with 10 additions and 1 deletions

9
lib/facter/ovs_uuid.rb Normal file
View File

@@ -0,0 +1,9 @@
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

View File

@@ -32,7 +32,7 @@ Puppet::Type.newtype(:vs_config) do
end
newproperty(:value) do
desc 'Configuration value for the paramter'
desc 'Configuration value for the parameter'
validate do |value|
if !value.is_a?(String)