Tuesday 26 April 2016

psft_customizations file extension: Should be YAML only









After defining the psft_customizations.yaml and executing the command puppet apply site.pp --debug --trace, the puppet log was showing that psft_customizations.yaml is getting skipped in the process of deployment of environment stack. Log shown as below

ebug: hiera(): Cannot find datafile C:\ProgramData\PuppetLabs\puppet\etc\data/psft_customizations.yaml, skipping
Debug: hiera(): Looking for data source psft_unix_system
Debug: hiera(): Looking for data source psft_deployment
Debug: hiera(): Found peoplesoft_base in psft_deployment
Notice: Scope(Class[Pt_profile::Pt_tools_deployment]): JDK remove is true
Debug: hiera(): Looking up weblogic in YAML backend
Debug: hiera(): Looking for data source defaults
Debug: hiera(): Looking for data source psft_customizations
Debug: hiera(): Cannot find datafile C:\ProgramData\PuppetLabs\puppet\etc\data/psft_customizations.yaml, skipping

Further all the deployment customization as given in the psft_customizations.yaml also not considered in apply process. Finally the process failed with the error and didn't install weblogic, tuxedo and Oracle client.

Error: /Stage[main]/Pt_setup::Tools_deployment/Pt_deploy_weblogic[weblogic]/ensure: change from absent to present failed
: Weblogic installation copying failed: Execution of 'D:/dev/ps_home/pt85503/pt/wl20160427-1860-1izm0nwdir/pasteBinary.c
md -javaHome D:/dev/ps_home/pt85503/pt/jdk1.7.0_95 -archiveLoc D:/dev/ps_home/pt85503/pt/wl20160427-1860-1izm0nwdir/pt-w
eblogic-copy.jar -targetMWHomeLoc D:/dev/ps_home/pt85503/pt/bea -targetOracleHomeName OraWL1213Home  -executeSysPrereqs
false -silent true -logDirLoc D:/dev/ps_home/pt85503/pt/wl20160427-1860-1izm0nwdir' returned 4294967295: Log   File: "D:
\dev\ps_home\pt85503\pt\wl20160427-1860-1izm0nwdir\CLONE2016-04-27_14-59-10_1463859077.log".

Solution: It is due to the fact that when I was creating the psft_customizations.yaml on windows, I was saving the file as Yaml extension which eventually was getting saved as .txt extension. Yaml when saved with .txt extension will not be picked up by the puppet software for the deployment.
We need to save the file with double quotes in it so that it can be saved as file type of YAML ONLY i.e,

"psft_customizations.yaml". This will generate the file with the type as YAML. As given in the image embedded above.

No comments:

Post a Comment