This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable RubyGems | |
# | |
# The RubyGems included with the DPK can't download from RubyGems.org due to an oudated SSL Certificate | |
# | |
# invoke-webrequest https://gist.githubusercontent.com/iversond/e56e608cf8fa65f7160416f4c434da57/raw/43902b10b23efac88c58a78c0be66f701cdec4b1/enableRubyGems.ps1; . $env:TEMP\enableRubyGems.ps1 | |
# | |
$puppetGemFolder = Resolve-Path 'C:\Program Files\Puppet Labs\Puppet\sys\ruby\lib\ruby\*\rubygems\ssl_certs\' | |
#Invoke-WebRequest https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem -OutFile $puppetGemFolder\RubyGemsCA.pem | |
Invoke-WebRequest https://github.com/rubygems/rubygems/blob/270f8f9f2ea39d2e35cb1063b88dcee26cfaf070/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem -OutFile $puppetGemFolder\RubyGemsCA.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=2059,2154,2034,2155,2046,2086 | |
#=============================================================================== | |
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 spelllang=en ft=sh | |
#=============================================================================== | |
# | |
# Usage: scan_log4j.sh <Fix Y/N> <(Optional) Debug: true/false> | |
# | |
# Examples: | |
# Scan and Fix libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
appserver_domain_list: | |
"%{hiera('appserver_domain_name')}": | |
os_user: "%{hiera('domain_user')}" | |
ps_cfg_home_dir: "%{hiera('ps_config_home')}" | |
template_type: small | |
db_settings: | |
db_name: "%{hiera('db_name')}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ps_home_dir = hiera('ps_home_location') | |
$oracle_home_location = hiera('oracle_server_location') | |
$tns_dir = hiera('tns_dir') | |
case $::osfamily { | |
'windows': { | |
$gem_home = 'c:/program files/puppet labs/puppet/bin' | |
exec { 'install-psadmin_plus': | |
command => "${gem_home}/gem install psadmin_plus", | |
provider => 'powershell' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dpk_location = hiera('dpk_location') | |
case $::osfamily { | |
'windows': { | |
exec { 'fix-dpk-bug': | |
command => "(gc ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb) | %{ \$_ -replace \"ae_program_name=`\"PTEM_CONFIG`\"\", \"ae_program_name=resource[:program_id]\" } | set-content ${dpk_location}/puppet/production/modules/pt_config/lib/puppet/provider/psae.rb", | |
provider => powershell, | |
} | |
} | |
'RedHat', 'linux': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-location e:\psoft\dpk\puppet | |
# pia_domain_list | |
(get-content -Path .\modules\pt_profile\manifests\pt_pia.pp) -replace "hiera\(\'pia_domain_list\'\)", "lookup('pia_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_pia.pp | |
(get-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp) -replace "hiera\(\'pia_domain_list\'\)", "lookup('pia_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp | |
# appserver_domain_list | |
(get-content -Path .\modules\pt_profile\manifests\pt_appserver.pp) -replace "hiera\(\'appserver_domain_list\'\)", "lookup('appserver_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_appserver.pp | |
(get-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp) -replace "hiera\(\'appserver_domain_list\'\)", "lookup('appserver_domain_list', undef, undef, '')" | set-content -Path .\modules\pt_profile\manifests\pt_domain_boot.pp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=2059,2154,2034,2155,2046,2086 | |
#=============================================================================== | |
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 spelllang=en ft=sh | |
#=============================================================================== | |
# | |
# DESCRIPTION: Apply security and bug fixes to GitLab. | |
# | |
#=============================================================================== |