Puppet Function: ensure_packages

Defined in:
vendor_modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb
Function type:
Ruby 3.x API

Summary

Deprecated 3x version of the `ensure_packages` function

Overview

ensure_packages()Any

Returns:

  • (Any)


4
5
6
7
8
# File 'vendor_modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb', line 4

newfunction(:ensure_packages, type: :statement, doc: '@summary Deprecated 3x version of the `ensure_packages` function') do |arguments|
  # Call the 4.x version of this function in case 3.x ruby code uses this function
  Puppet.warn_once('deprecations', '3xfunction#ensure_packages', 'Calling function_ensure_packages via the Scope class is deprecated. Use Scope#call_function instead')
  call_function('ensure_packages', arguments)
end