libraries/config_helpers.rb
# return a Mash with config options which can be used for the service config
# templates
# @param [String] service
return a Mash with config options which can be used for the service config
templates
return a Mash with config options which can be used for the service config templates
def merge_config_options(service)
    conf = deep_dup(node['slurm'][service]['conf'])
    conf_secrets = if node['slurm'][service]['conf_secrets']
                     deep_dup(node['slurm'][service]['conf_secrets'])
                   else
                     {}
                   end
    Chef::Mixin::DeepMerge.merge(conf, conf_secrets)
  end
def merge_config_options ( service ) conf = deep_dup ( node [ 'slurm' ] [ service ] [ 'conf' ] ) conf_secrets = if node [ 'slurm' ] [ service ] [ 'conf_secrets' ] deep_dup ( node [ 'slurm' ] [ service ] [ 'conf_secrets' ] ) else { } end Chef :: Mixin :: DeepMerge . merge ( conf , conf_secrets ) end
return a Mash with config options which can be used for the service config
templates
return a Mash with config options which can be used for the service config templates
service
None