To remove the DPK deployed PeopleSoft environment follow the steps below
For Windows server we need to execute the command as below:
./psft-dpk-setup.ps1 -cleanup
For Linux based server or any other flavour of unix the command is:
./psft-dpk-setup.sh --cleanup
I have seen in my scenario where the above given Manual method of cleanup was failing and not clearing all the files on the server. This was happening due to the space in the folder or having some folders with large name.In one of the case, I have seen re-installation was failing because one folder was not cleared in the cleanup process and that folder was having a large directory name.In case if the automated method of cleaning is failing then an alternate way to 'cleanup' is to manually remove the existing installation:
- Locate the default.yaml file in /etc/Puppet/data on Linux platforms and in
C:\ProgramData\PuppetLabs\Puppet\etc\data on Microsoft Windows platforms.
- Change the ensure value in default.yaml from 'present' to 'absent'
- Change directory to this location /etc/puppet/manifests on Linux platforms and
C:\programdata\puppetlabs\puppet\etc\manifests on Microsoft Windows platform
And finally execute the command below
- Run puppet apply site.pp --debug –trace
This will remove the existing installation from the server.
Leave your comment on the topic.
For Windows server we need to execute the command as below:
./psft-dpk-setup.ps1 -cleanup
For Linux based server or any other flavour of unix the command is:
./psft-dpk-setup.sh --cleanup
I have seen in my scenario where the above given Manual method of cleanup was failing and not clearing all the files on the server. This was happening due to the space in the folder or having some folders with large name.In one of the case, I have seen re-installation was failing because one folder was not cleared in the cleanup process and that folder was having a large directory name.In case if the automated method of cleaning is failing then an alternate way to 'cleanup' is to manually remove the existing installation:
- Locate the default.yaml file in /etc/Puppet/data on Linux platforms and in
C:\ProgramData\PuppetLabs\Puppet\etc\data on Microsoft Windows platforms.
- Change the ensure value in default.yaml from 'present' to 'absent'
- Change directory to this location /etc/puppet/manifests on Linux platforms and
C:\programdata\puppetlabs\puppet\etc\manifests on Microsoft Windows platform
And finally execute the command below
- Run puppet apply site.pp --debug –trace
This will remove the existing installation from the server.
Leave your comment on the topic.
Hi Rimpal ,
ReplyDeleteI am trying to remove a failed installation
Debug: Caching environment 'production' (ttl = 0 sec)
Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::pt_role::pt_tools_midtier for XXXXXXXXXXXXXX at /etc/puppet/manifests/site.pp:22:5 on node XXXXXXXXXXXXXXXXXX
Thanks
Subha
Hi Subha,
ReplyDeleteHas this been resolved.
Thanks
Rimpal