I’ve written an adapter for OpenDeploy, which allows secure deployment over SSH. An OpenDeploy receiver is not required on the target host – the only requirement is an SSH shell, supporting scp, unzip and rm.
It’s pretty fast. It works by zipping the files up on the source, deploying the zip, and unpacking it on the target. Consequently it doesn’t handle any rollback. However, it does handle deletes.
To use the adapter:
- Put the adapter JAR on the OpenDeploy receiver (this can be your base, which can be configured to deploy to itself). Put it in $ODHOME/userlib
- Amend your deployment configuration to include the section of XML as shown below
- Create a properties file for the deployment, which also resides on the OpenDeploy receiver, in the location $ODHOME/adapters/delivery/scpadapter. An example is also shown below. You’re likely to have a different properties file for each project.
Deployment Configuration
<target useReplicationFarm="MYFARMNAME"> <odAdapterSet> <odAdapter name="ODSCPAdapter" class="com.teamsitetuesday.odscpadapter.ODSCPAdapter" parameterNS="odscp" parameter="OD-HOME/adapters/delivery/scpadapter/PROPERTIES_FILENAME" async="no"/> </odAdapterSet> ...
Properties file
remotehost=IP_ADDRESS remotedir=/path/to/target/folder username=USERNAME password=PASSWORD
Warranty
None. No promises, no comeback, use at your own risk.
I’d be interested to hear how it works out. Or if you have any suggestions for improvement, do please let me know.

Recent Comments