Puppet Function: vulnerability::validate

Defined in:
lib/puppet/functions/vulnerability/validate.rb
Function type:
Ruby 4.x API

Overview

vulnerability::validate()Object

Validate that your system doesn’t have vulnerabilities above a specified level. When your system does contain the vulnerabilities, signal this to the puppet server



14
15
16
17
18
19
20
# File 'lib/puppet/functions/vulnerability/validate.rb', line 14

Puppet::Functions.create_function('vulnerability::validate') do
  # @param  level The you want to start reporting on. A vulnerability of this level or higher, results in a failure.
  # @param  allow_list The list of vulnerabilities you allow on this system without failing this function
  # @param  fail_on_unsafe If this is true, this function will throw an error.
  # @return The list of CVE's that violate your specified level.
  include Vulnerability::Validate
end