Puppet Function: profile::mariadb::section_params::load_param

Defined in:
modules/profile/functions/mariadb/section_params/load_param.pp
Function type:
Puppet Language

Overview

profile::mariadb::section_params::load_param(Profile::Mariadb::Valid_section $section, String $param)String

Parameters:

  • section (Profile::Mariadb::Valid_section)
  • param (String)

Returns:



1
2
3
4
5
6
7
8
9
10
11
12
# File 'modules/profile/functions/mariadb/section_params/load_param.pp', line 1

function profile::mariadb::section_params::load_param(
    Profile::Mariadb::Valid_section $section,
    String $param,
) >> String {
    $all_sections = lookup('profile::mariadb::section_params')
    $def_params = $all_sections["_defaults_"]
    if has_key($all_sections, $section) {
        pick($all_sections[$section][$param], $def_params[$param])
    } else {
        $def_params[$param]
    }
}