Skip to content

Instantly share code, notes, and snippets.

View iversond's full-sized avatar

Dan Iverson iversond

View GitHub Profile
@iversond
iversond / installES.md
Last active August 25, 2020 14:11
ES Cluster setup for demos on a single Linux PI

On a fresh Linux PI installation

Set OS Settings

sudo sysctl -w vm.max_map_count=262144

Download getMOSPatch

@iversond
iversond / prompt.bashrc
Created April 20, 2019 15:11
My preferred bash prompt
PS1=$'\\[\\033]0;\\W\\007\\]\\[\E[1m\\]\\n\\[\E[38;5;166m\\]\\u\\[\E[97m\\] at \\[\E[38;5;136m\\]\\h\\[\E[97m\\] in \\[\E[38;5;64m\\]\\w\\n\\[\E[97m\\]$ \\[\E(B\E[m\\]'
PS2=$'\\[\E[38;5;136m\\]\206\222 \\[\E(B\E[m\\]'
PS4='+ '
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@iversond
iversond / domains.yaml
Last active November 21, 2021 00:57
Default domain configuration for the DPK. Used with Hiera Hashing to allow environments to overrride/add to the defaults
---
# TNSnames.ora
tns_admin_list:
"%{hiera('db_name')}":
db_host: "%{hiera('db_server')}"
db_port: "%{hiera('db_port')}"
db_protocol: TCP
db_service_name: "%{hiera('db_name')}.psadmin.io"
# Application Servers
@iversond
iversond / common.yaml
Created January 22, 2019 21:16
Common configuration shared across all DPK environments
---
ensure: present
env_type: midtier
server_type: "%{::ps_role}"
domain_type: "%{::ps_role}"
region: "%{::region}"
peoplesoft_base: c:/psft
peoplesoft_base_norm: "c:\\psft"
unicode_db: false
@iversond
iversond / applyPT856Upgrade.ps1
Created August 31, 2018 14:20
Powershell script to run the PeopleTools 8.56 Upgrade job headlessly. A few assumptions with the script: All manual steps are marked as complete.; your PT Client installs are at c:\client-8.xx.xx
<#PSScriptInfo
.SYNOPSIS
Apply the PeopleTools 8.56 Upgrade Project
.DESCRIPTION
Automate the Change Assistant job that applies the PTU856 project to a database.
.PARAMETER DATABASE
Which database to encrypt the password
.PARAMETER PT_VERSION
PeopleTools version to apply
.PARAMETER CA_BASE
@iversond
iversond / fixRubyGems.ps1
Created March 26, 2018 00:17
Script to download the updated CA file to RubyGems on Windows will work. From the blog post: http://wragg.io/using-puppet-modules-forge-and-r10k/
$CACertFile = Join-Path -Path $ENV:AppData -ChildPath 'RubyCACert.pem'
If (-Not (Test-Path -Path $CACertFile)) {
"Downloading CA Cert bundle.."
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri 'https://curl.haxx.se/ca/cacert.pem' -UseBasicParsing -OutFile $CACertFile | Out-Null
}
"Setting CA Certificate store set to $CACertFile.."
$ENV:SSL_CERT_FILE = $CACertFile
@iversond
iversond / psadmin.conf.2018.md
Last active April 23, 2018 18:56
psadmin.conf 2018 Session Descriptions

Implementing DPK To Build PeopleSoft Servers at Capella University

Peyton Colburn

(Sunday Session)

This session will cover seven lessons we learned from implementing the Deployment Packages. We will discuss how we got management buy-in, how we work collaboratively on the DPK, what resourses we used to learn Puppet, how we structured our Hiera data, and how to bring the entire PS Admin team up to speed.

Running a PeopleSoft Elasticsearch Cluster on Kubernetes

@iversond
iversond / app.rb
Created March 2, 2018 20:17
Custom facter fact to return the first 2 characters as the Fact `app`
Facter.add(:app) do
setcode do
app = Facter.value(:hostname)[0..1]
if app.downcase.match(/lm/)
app = "hr"
end
app.downcase
end
@iversond
iversond / psadmin.conf.2018.yaml
Last active July 28, 2022 15:52
psadmin.conf 2018
---
title: 'psadmin.conf'
version: '2018'
description: 'The only conference for PeopleSoft Administrators.'
long_description: >
psadmin.conf is a conference specifically for PeopleSoft Administrators.
The conference features talks from expert admins on a variety of topics.
The goal of the conference is to expand your knowledge of PeopleSoft
Administration and network with admins from around the country.