Skip to content

Instantly share code, notes, and snippets.

Dan Iverson iversond

Block or report user

Report or block iversond

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
iversond / psft_customizations.yaml
Last active Aug 25, 2016
Enable the WSL and PeopleCode Debugger services when building a PeopleSoft Image.
View psft_customizations.yaml
os_user: "%{hiera('domain_user')}"
ps_cfg_home_dir: "%{hiera('ps_config_home')}"
template_type: small
db_name: "%{hiera('db_name')}"
View yum-elasticsearch.repo
name=Elasticsearch repository for 2.x packages
iversond / appConfig.pp
Created Dec 7, 2016
Puppet manifest to update App Server config file from psft_customizations.yaml config_settings: section
View appConfig.pp
$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| {
View localapp.pp
host {'localapp':
ensure => present,
host => 'localapp',
ip => "${::ipaddress}",
$pia_domain_list = hiera('pia_domain_list')
$pia_domain_list.each | $domain_name, $pia_domain_info | {
$ps_cfg_home_dir = $pia_domain_info['ps_cfg_home_dir']
iversond / app_dynamic_cfg.pp
Created Dec 30, 2016
Uses a custom `dynamic_config:` hash in `psft_customizations.yaml` to update dynamic changes in `psappsrv.cfg`
View app_dynamic_cfg.pp
$ensure = hiera('ensure')
$base = hiera('peoplesoft_base')
$appserver_domain_list = hiera('appserver_domain_list')
$appserver_domain_list.each | $domain_name, $appserver_domain_info | {
$cfg_file = "${appserver_domain_info['ps_cfg_home_dir']}/appserv/${domain_name}/psappsrv.cfg"
$dynamic_config = $appserver_domain_info['dynamic_config']
$dynamic_config.each | $setting, $config_value | {
iversond / x-OPPRIDLogField
Last active Mar 8, 2017
WebLogic HTTP Header to log OPRID for PeopleSoft pages to the access log (from @ripleymj).
View x-OPPRIDLogField
import weblogic.servlet.logging.CustomELFLogger;
import weblogic.servlet.logging.FormatStringBuffer;
import weblogic.servlet.logging.HttpAccountingInfo;
import java.lang.reflect.Method;
public class OPRIDLogField implements CustomELFLogger
public void logField(HttpAccountingInfo metrics, FormatStringBuffer buff)
iversond / touch-icons.pp
Last active Mar 23, 2017
Deploy a file to PORTAL.war and signin.html to each site. Uses the PowerShell 4+ command 'Expand-Archive'.
View touch-icons.pp
$share_path = "//lm-d1/temp"
$pia_domain_list = hiera('pia_domain_list')
$pia_domain_list.each | $domain_name, $pia_domain_info | {
$cfg_home = $pia_domain_info['ps_cfg_home_dir']
$baseWebPath = "${cfg_home}/webserv/${domain_name}/applications/peoplesoft/PORTAL.war"
file {"io-favicons-zip-${domain_name}":
ensure => $ensure,
iversond / processJSON.pcode
Created Mar 29, 2017
Process inbound JSON. Not very dynamic, but using some basic JSON types in PeopleCode to parse the message data.
View processJSON.pcode
method Process
/+ &_str as String +/
/+ Returns Boolean +/
/* Try using the JsonObject */
Local JsonParser &parser = CreateJsonParser();
Local boolean &status = &parser.Parse(&_str);
Local JsonObject &jo = &parser.GetRootObject();
Local JsonArray &jArray = &jo.GetJsonArray("Updates");
Local Record &m_email_stg = CreateRecord(Record.M_EMAIL_STG);
View psft_customizations-ec2.yaml
db_name: PSFTDB
db_user: PS
db_user_pwd: PS
db_connect_id: people
db_connect_pwd: peop1e
pia_webprofile_name: DEV
pia_host_name: "%{::ec2_hostname}"
db_host_name: "%{::ec2_hostname}"
View ppm.sql
update psadm.psurldefn set url = 'LOCAL'
where url_id = 'PPM_MONITOR';
update psadm.psurldefn set url = 'LOCAL'
where url_id = 'PPM_PPMI';
You can’t perform that action at this time.