Puppet Function: ora_patches_installed

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

Overview

ora_patches_installed(Array $patch_list)Boolean

See the file “LICENSE” for the full license governing this code.

This function checks if the specfied patches are installed. The patch list is an array and has the syntax

['/oracle/home/dir:patchid']

It will check all registered Oracle homes for the installed patches.

Parameters:

  • patch_list (Array)

Returns:

  • (Boolean)


12
13
14
15
16
17
18
19
20
21
22
# File 'lib/puppet/functions/ora_patches_installed.rb', line 12

Puppet::Functions.create_function(:'ora_patches_installed') do
  dispatch :check_patch_list do
    param 'Array', :patch_list
    return_type 'Boolean'
  end

  def check_patch_list(patch_list)
    Puppet.warn_once('deprecations', 'ora_patches_installed',"Function 'ora_patches_installed' is deprecated. Please use 'ora_install::ora_patches_installed'.")
    call_function('ora_install::ora_patches_installed', patch_list)
  end
end