DevOps Automation

 View Only

How to create a new WebSphere Application Server from a process

By Osman Burucu posted Tue January 03, 2023 04:18 AM

  

This article was originaly published in 2017.03.06

How to create a new WebSphere Application Server from a process

When using IBM® UrbanCode Deploy™ with the plugins WebSphere® Application Server Deploy and WebSphere Application Server Configure, you can create new application servers based on a template, from a component process. This method is helpful if you want to automatically create many servers that have the same standard configuration.

These steps describe how to proceed:

  1. On the Source Cell, execute Websphere Discovery, and WebSphere Topology Discovery, as described in Importing Resources from WebSphere Application Server
  2. Execute the sample process: WebSphere – Example 2 – Discover & Templatize Configuration Data (WAS ND with standalone server). Note: This process will create a new component version in the component Server Config, which was automatically created when you loaded the WebSphere Application Server Configure plugin.
  3. On the Target Cell, execute WebSphere Discovery, WebSphere Topology Discovery, as described in Importing Resources from WebSphere Application Server
  4. Write down the full path to the Servers resource that was discovered. You will find the parent path by doing the following:
    click on Resources, navigate to Servers,  click on Servers, click on Resource: Servers (shows details). The path should look like this:
    /TopResource/AgentName/CellName/Nodes/NodeName/Servers 
  5. Create a new generic process named Create WebSphere Server Resource Role. Include the following steps in the order listed. Each step must contain the values specified below: 
    Create Resource with values:
    Name Create Resource for Server
    New Resource Name ${p:serverName}
    Parent Resource Path ${p:resourcePath}
    Role Name WebSphereServer

    Set Resource Role property with values:

    Name Set Resource Role property for Server name
    Resource ${p:resourceName}/${p:serverName}
    Role WebSphereServer
    Property name websphere.server
    Property value ${p:serverName}

    Create Resource with values:

    Name Add Resource for Server Config Component
    New Resource Name ${p:componentName}
    Parent Resource Path ${p:resourcePath}/${p:serverName}
    Role ${p:componentName}
  6. Add three properties to the generic process:
    Name Type Required
    serverName String required
    componentName String required
    resourcePath String required
  7. Create an application
  8. Add the component Server Config to the application
  9. Create an application process. Include the following steps in the order listed. Each step must contain the values specified below: 
    Utility steps > Run generic process, with values:
    Name Create new WebSphere Server
    Process Create WebSphere Server Resource Role
    Resource Path ${p:resourcePath}
    serverName ${p:serverName}
    componentName Server Config

    Install Component , with values:

    Name Apply Server Config
    Component Server Config
    Component Process Apply
  10. Create an Environment that contains the Resource tree of the Target Cell
  11. Click on the Play icon on the Environment, and select the application process that will be executed
  12. You will be prompted to supply the values of:
    Resource Path Enter a path similar to: /TopResource/AgentName/CellName/Nodes/NodeName/Servers
    serverName Enter a new name for the server to be created

After the process executes, you will see that :

  1. A new Resource with the name that you specified in the serverName property has been added to the resource tree under the Resource Path that you specified.
  2. A new WebSphere Application Server appears in the WebSphere Administrative Console.
  3. All the configurations that were part of the original server template have been applied to the newly created server.


#WebSphereApplicationServer(WAS)


#UrbanCodeDeploy
0 comments
7 views

Permalink