Sha256: 19c01c68c29b05eaf33aa8bc0cb36cbb21cd99951fbae349e4e15019d0c652a2
Contents?: true
Size: 444 Bytes
Versions: 60
Compression:
Stored size: 444 Bytes
Contents
# Loads a answer file # # it can be specified either as a $kafo_answer_file variable or it's read from config file module Puppet::Parser::Functions newfunction(:load_kafo_answer_file, :type => :rvalue) do |args| answer_file = lookupvar('kafo_answer_file') if answer_file && answer_file != :undefined && !answer_file.empty? answer_file else YAML.load_file(lookupvar('kafo_config_file'))[:answer_file] end end end
Version data entries
60 entries across 60 versions & 1 rubygems