webMethods

 View Only

Automate Hybrid (WmCloud) Connectivity

By Srinivasan Sabapathy posted 9 days ago

  

WxCloudAutomate

This package helps to automate the creation of WmCloud application and upload of services to webMethods.IO for Microservices Runtime (MSR).

Prerequisites

This assumes that Tenant alias and Account alias has been created. Which could be automated using accounts.cnf, connections.cnf & application.properties
in MSR

Installation

Install using wpm

wpm.sh install -r custom_ibm WxCloudAutomate

Sample wpm.yml

version: 1
switches:
  target_installation: /opt/softwareag/IntegrationServer/
  scan_branches: true
  cleanup: true
repositories:
  custom_ibm:
    type: git
    location: 'https://github.com/IBM/'
    creds:
      user: USER
    password: PAT

Usage

In your docker file
1. Copy the accounts.cnf to <Instalation>/IntegrationServer/config/integrationLive/
2. Copy the connections.cnf to <Instalation>/IntegrationServer/config/integrationLive/
3. Copy the application.properties
4. Install WxCloudAutomate using wpm

Samples / examples

Below are only sample configs, for production these needs to be adjusted as per the needs.

accounts.cnf

<?xml version="1.0" encoding="UTF-8"?>
<IDataXMLCoder version="1.0">
  <record javaclass="com.wm.data.ISMemDataImpl">
    <record name="default" javaclass="com.wm.data.ISMemDataImpl">
      <value name="alias">default</value>
      <jboolean name="isEnabled">true</jboolean>
      <value name="username">gitops</value>
      <value name="pswdHandle">wm.is.admin.ilive.gitops.default</value>
      <value name="iLiveURL">https://dummy.webmethods.io</value>
      <value name="umURL">nhps://dummy.um.int-aws-de.webmethods.io:443//dummy/</value>
    </record>
  </record>
</IDataXMLCoder>

connections.cnf

<?xml version="1.0" encoding="UTF-8"?>
<IDataXMLCoder version="1.0">
  <record javaclass="com.wm.data.ISMemDataImpl">
    <array name="IntegrationLiveConnections" type="record" depth="1">
      <record javaclass="com.wm.data.ISMemDataImpl">
        <value name="tenantAlias">default</value>
        <value name="aliasName">Hybrid_IPaaS</value>
        <value name="description"/>
        <value name="stage">stage00</value>
        <value name="stageDisplay">Development</value>
        <value name="onPremiseHosts">localhost</value>
        <number name="windowSize" type="java.lang.Integer">5</number>
        <number name="retry" type="java.lang.Long">5</number>
        <value name="runAsUser">Administrator</value>
        <jboolean name="isEnabled">true</jboolean>
        <jboolean name="isForAdminUse">false</jboolean>
        <record name="properties" javaclass="com.wm.data.ISMemDataImpl">
 </record>
        <number name="timeToLive" type="java.lang.Long">60001</number>
        <number name="timeToLiveCache" type="java.lang.Long">30</number>
      </record>
    </array>
  </record>
</IDataXMLCoder>

application.properties

#Sample Generated Template
#Thu Jun 27 14:24:12 GMT 2024

wmcloudsettings.default.iLiveURL=https\://dummy.int-aws-de.webmethods.io
wmcloudsettings.default.password="AES Password generated from IS"
wmcloudsettings.default.username=gitops
wmcloudaccount.Hybrid_IPaaS.stage=stage00

References

0 comments
70 views

Permalink