A Rundeck script plugin for remotely administering a PeopleSoft Web Server instance.
NOTE: this currently only works for for UNIX/LINUX, and has only been tested with Weblogic
Copy the ps-web-plugin.zip file to your
$RDECK_BASE/libext directory and restart the Rundeck service.
mv ps-web-plugin.zip $RDECK_BASE/libext
You should now have an additional "PS Webserver" option when configuring jobs.
The following node variables must be set in order for the plugin to work.
Depending on your configuration, you may also need to set the following as well.
For example, here's how a yaml resource file might be setup.
hrlinuxappserver01: tags: 'app,web,prcs' osName: Linux osFamily: unix username: psoft osArch: amd64 description: HRDEMO Appserver Environment nodename: hrlinuxappserver01 hostname: hrlinuxappserver01 osName: Linux ps_home: '/opt/psoft/pt854' ps_cfg_home: '/opt/psoft/pt854cfg' ps_app_home: '/opt/psoft/hcm92' ps_pia_home: '/opt/psoft/pt854cfg' ps_cust_home: '/opt/psoft/hcm92custom' tuxdir: '/opt/oracle/middleware/tuxedo12c' java_home: '/usr/lib/jvm/java-1.7.0' oracle_home: '/opt/oracle/product/12.1.0/client' oracle_base: '/opt/oracle' cobdir: '/opt/microfocus/netexpress' appserver_domain: hrdemo prcs_domain: hrdemo pia_domain: hrdemo
Also, it should be noted that this is a Rundeck script plugin and works by passing the node variables as environment variables over SSH. In order for the plugin to have access to the configured node variables, you'll need to make sure that the ssh server process on the target system is configured for this.
To use the plugin, simply select the "PS Webserver" node step type when adding a step to a workflow. Then enter in the PIA domain that you would like to administer, and select the action you would like to perform from the drop-down list. The actions are pretty straightforward, but here's a quick run down of what each does:
- status: Returns the status of the domain
- start: Starts the specified domain
- stop: Shuts down the specified domain
- purge: Deletes the webserver cache files
- restart: Stops the domain and then starts it
- bounce: Performs the following - stop, purge, start
Copyright © 2016 JR Bing
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.