I have requirment to deploy content to Two LSCS Nodes in parallel. It can be done by configuring Farm. Once files are pushed to receievr host , LSCS deployment executes import command , for successful import on both nodes $lscsRuntimehost input parameter can be configured as "localhost". Adapter on both nodes will create URL similar to following,
http://localhost:1876/lscs/v1/import/
However LSCS Runtime server provided to us do not support "localhost" , due to certain security reason. Hence we would like to use actual hostname during execution on OD Deployment in following adapter
<odAdapter name="LSCS Import Delivery Adapter" class="com.interwoven.wcm.iwrr.deployment.adapter.delivery.ImportDeliveryAdapter"
parameter="
lscsRuntimeTransport=$lscsRuntimeTransport;
lscsRuntimeHostname=$lscsRuntimeHostname;
lscsRuntimePort=$lscsRuntimePort;
lscsRuntimeContext=$lscsRuntimeContext;
deploymentContextId=$deploymentContextId;
destinationArea=$destinationArea;
projectName=$projectName;
lscsRuntimeKeyStore=$lscsRuntimeKeyStore;
lscsRuntimeKeyStoreType=$lscsRuntimeKeyStoreType;
lscsRuntimeKeyStorePassword=$lscsRuntimeKeyStorePassword;
lscsRuntimeTrustStore=$lscsRuntimeTrustStore;
lscsRuntimeTrustStoreType=$lscsRuntimeTrustStoreType;
lscsRuntimeTrustStorePassword=$lscsRuntimeTrustStorePassword;
lscsRuntimeProtocolHandler=$lscsRuntimeProtocolHandler"
async="no"
logLevel="DEBUG"/>
</odAdapterSet>
We need above configuration changed to ,
<odAdapter name="LSCS Import Delivery Adapter" class="com.interwoven.wcm.iwrr.deployment.adapter.delivery.ImportDeliveryAdapter"
parameter="
lscsRuntimeTransport=$lscsRuntimeTransport;
lscsRuntimeHostname=$hostname;
lscsRuntimePort=$lscsRuntimePort;
lscsRuntimeContext=$lscsRuntimeContext;
deploymentContextId=$deploymentContextId;
destinationArea=$destinationArea;
projectName=$projectName;
lscsRuntimeKeyStore=$lscsRuntimeKeyStore;
lscsRuntimeKeyStoreType=$lscsRuntimeKeyStoreType;
lscsRuntimeKeyStorePassword=$lscsRuntimeKeyStorePassword;
lscsRuntimeTrustStore=$lscsRuntimeTrustStore;
lscsRuntimeTrustStoreType=$lscsRuntimeTrustStoreType;
lscsRuntimeTrustStorePassword=$lscsRuntimeTrustStorePassword;
lscsRuntimeProtocolHandler=$lscsRuntimeProtocolHandler"
async="no"
logLevel="DEBUG"/>
</odAdapterSet>
where $hostname is automatically populated by OpenDeploy with actual physical host , not OD node or farm.