Puppet Function: platform_fretta
- Defined in:
- lib/puppet/parser/functions/platform_fretta.rb
- Function type:
- Ruby 3.x API
Overview
27 28 29 30 31 32 33 |
# File 'lib/puppet/parser/functions/platform_fretta.rb', line 27 newfunction(:platform_fretta, type: :rvalue) do |_args| data = lookupvar('os') return '' if data.nil? pat = '7.0\(3\)F' data['release']['full'].match(pat) ? true : false end |