b9rCSGK1
2017-01-12 02:56:20

<server>

<collectiveController user="admin" password="adminpwd" />
<deployRule id="APIC Server Rule" type="Node.js" description="Deploy rule for Node.js servers." name="Node.js Server">
<deploy>
"${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" server:checkDeployDir "${WLPN_USER_DIR}"/${serverName};
"${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" server:getPackage ${applicationDir}%2F${applicationPackage} --host=${wlp.admin.host} --port=${wlp.admin.port} --user=${wlp.admin.user} --password=${wlp.admin.password} --outputFile="${WLPN_USER_DIR}"/${serverName}/${applicationPackage};
WLPN_USER_DIR="${WLPN_USER_DIR}" "${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" server:unpack ${serverName} "${WLPN_USER_DIR}"/${serverName}/${applicationPackage};
"${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" collective:join ${serverName} --host=${wlp.admin.host} --port=${wlp.admin.port} --user=${wlp.admin.user} --password=${wlp.admin.password} --keystorePassword=${keystorePassword} --autoAcceptCertificates --clusterName=${clusterName} --hostName=${wlp.deploy.host} --genDeployVars</deploy>
<undeploy>
"${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" server:stop ${serverName} &amp;&amp; "${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" collective:remove ${serverName} --host=${wlp.admin.host} --port=${wlp.admin.port} --user=${wlp.admin.user} --password=${wlp.admin.password} --autoAcceptCertificates</undeploy>
<start>
"${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" server:start ${serverName}
</start>
<stop>
"${NODE_BIN}" "${WLPN_INSTALL_DIR}/wlpn" server:stop ${serverName}
</stop>
<restart></restart>
<inputVariable name="applicationPackage" type="String" description="Name of the application package (.tgz) to install."/>
<inputVariable name="serverName" type="String" description="Name of the server to run the application"/>
<inputVariable name="keystorePassword" type="String" description="Password for keystores of this application"/>
<inputVariable name="applicationDir" type="String" description="Location of dir containing the application to deploy"/>
<inputVariable name="clusterName" type="String" description="Name of cluster for deployment"/>
</deployRule>
</server>