diff --git a/lib/facter/ovs_uuid.rb b/lib/facter/ovs_uuid.rb new file mode 100644 index 00000000..cb3aa686 --- /dev/null +++ b/lib/facter/ovs_uuid.rb @@ -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 diff --git a/lib/puppet/type/vs_config.rb b/lib/puppet/type/vs_config.rb index 68ef2bbb..8c605b33 100644 --- a/lib/puppet/type/vs_config.rb +++ b/lib/puppet/type/vs_config.rb @@ -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)