Forum Discussion

Jeff_Watts_3264's avatar
Jeff_Watts_3264
Icon for Nimbostratus rankNimbostratus
Jul 07, 2017

Automated LB Configuration for WebSphere Deployments using Ansible

Hey all,

 

I'm building a cloud environment where my customers will use our Cloud Management Platform to provision their WebSphere clusters in our on-premise virtualisation environment. This will use the CMP automation as well as Ansible to automate the delivery.

 

I am mapping the IBM WebSphere 8 (BIG-IP v11.2: LTM, ASM) deployment guide to the available Ansible modules to automatically configure the F5 during deployment. All is good except for a couple of virtual server configuration settings. These settings are: 1) Type - Default is standard but needs to be set to Forwarding, and 2) Protocol - Default is set to TCP but needs to be set to All Protocols.

 

Can someone please help me to understand how these settings can be set using the available Ansible modules. I'm guessing that I might be able to accomplish this with pre-created profiles or policies?

 

Thank you for your help.

 

2 Replies

  • Hi Jeff, I reached out to the author of the ansible source for the virtual server template for feedback, but in a quick once-over, it doesn't appear the VS type is supported currently, so that would need to be added to meet your requirement. I'll edit my answer here when I get a response with definitive info.

     

  • Hi Jeff,
       You can create the below task after completion of virtual server to change the virtual server from standard to IP forwarding
    
    ---
      - name: " Change vs from standard to forwarding"
        uri: "https://myf5/mgmt/tm/ltm/virtual/~Common~vsname"
          url: 
          method: "PUT"
          validate_certs: "no"
          body_format: "json"
          user: "admin"
          password: "admin"
          body:
            ipForward: true
            ipProtocol: "any"
    
    
     Hopes this solves your problem.
    
     Thanks
      Syed