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

Version Path
kafo-0.7.6 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.7.5 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.7.4 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.8.2 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.8.1 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.8.0 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.7.3 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.7.2 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.7.1 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.7.0 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.12 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.11 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.10 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.9 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.8 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.7 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.6 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.5 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.4 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb
kafo-0.6.3 modules/kafo_configure/lib/puppet/parser/functions/load_kafo_answer_file.rb