Puppet Function: peadm::update_pe_conf
- Defined in:
-
functions/update_pe_conf.pp
- Function type:
- Puppet Language
Summary
Update the pe.conf file on a target with the provided hash
Overview
peadm::update_pe_conf(Target $target, Hash $updated_pe_conf_hash) ⇒ Any
4
5
6
7
8
9
10
|
# File 'functions/update_pe_conf.pp', line 4
function peadm::update_pe_conf(Target $target, Hash $updated_pe_conf_hash) {
# Convert the updated hash back to a pretty JSON string
$updated_pe_conf_content = stdlib::to_json_pretty($updated_pe_conf_hash)
# Write the updated content back to pe.conf on the target
write_file($updated_pe_conf_content, '/etc/puppetlabs/enterprise/conf.d/pe.conf', $target)
}
|