Puppet Function: merge_config
- Defined in:
- puppet/modules/service/lib/puppet/parser/functions/merge_config.rb
- Function type:
- Ruby 3.x API
Overview
14 15 16 17 18 19 20 21 22 |
# File 'puppet/modules/service/lib/puppet/parser/functions/merge_config.rb', line 14 newfunction(:merge_config, type: :rvalue, arity: 2) do |args| main_conf, service_conf = *args.map { |arg| config_to_hash(arg) } begin main_conf['services'][0]['conf'].update service_conf rescue fail('Badly formatted configuration.') end function_ordered_yaml([main_conf]) end |