Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Puppet manifest to update App Server config file from psft_customizations.yaml config_settings: section
$ensure = hiera('ensure')
$appserver_domain_list = hiera('appserver_domain_list')
$appserver_domain_list.each |$domain_name, $appserver_domain_info| {
notice("Configuration for AppServer domain ${domain_name}")
$cfgFile = "${appserver_domain_info['ps_cfg_home_dir']}\\appserv\\${domain_name}\\psappsrv.cfg"
$config_settings = $appserver_domain_info['config_settings']
$config_settings.each |$setting, $config_info| {
$setting_array = split($setting, "/")
# notice("Header ${setting_array[0]}")
# notice("Setting ${setting_array[1]}")
# notice("Config Info ${config_info}")
ini_setting {"PSAPPRV-${domain_name}-${setting_array[0]}-${setting_array[1]}":
ensure => $ensure,
path => $cfgFile,
section => $setting_array[0],
setting => $setting_array[1],
value => $config_info,
}
} # config_settings:
} # appserv_domain_list:
@iversond
Copy link
Author

iversond commented Dec 7, 2016

If you specify JOLT Listener/Address: in the config_settings: section, you may need to set the port number with the leading slashes. E.g,

    JOLT Listener/Address:        //0.0.0.0

@iversond
Copy link
Author

iversond commented Dec 7, 2016

If you specify Security/DomainConnectionPwd: in the config_settings: section, the password will be added to psappsrv.cfg as an unencrypted value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment