Puppet Function: peadm::get_pe_conf
- Defined in:
-
functions/get_pe_conf.pp
- Function type:
- Puppet Language
Overview
peadm::get_pe_conf(Target $target) ⇒ Any
1
2
3
4
5
6
7
8
9
|
# File 'functions/get_pe_conf.pp', line 1
function peadm::get_pe_conf(Target $target) {
$current_pe_conf_content = run_task('peadm::read_file', $target, path => '/etc/puppetlabs/enterprise/conf.d/pe.conf').first['content']
# Parse the current pe.conf content and return the hash
return $current_pe_conf_content ? {
undef => {},
default => stdlib::parsehocon($current_pe_conf_content),
}
}
|