Forum Discussion

Dmanden_23459's avatar
Dmanden_23459
Icon for Nimbostratus rankNimbostratus
Nov 27, 2015

iApp - objects outside of iapp template?

Hi F5 guru's

Is it possible to deploy an iapp template referencing objects outside of that template?

Background:

I am trying to create an iApp template that will create multiple LTM/GTM objects. This is to standardize and automate the deployment of multiple objects across the F5 estate.

I am able to create the LTM objects without issue, and can see all of these objects within their respective iapp container.

When it comes to the gtm objects, there are number of "universal" objects that each application will need to make use of. ie GTM Datacenters and GTM servers. Is there a way I can get the iapp to reference a universal object in the /Common configuration. Or do I need to clone these objects separately each time I deploy an application via iapp.

Below is an example of what I am trying to do.

iApp Config:

Add VS to GSLB Servers

tmsh::modify "gtm server gslb-server1 virtual-servers add { ${object_name}_80 { destination $IpAddr:80 } }"


Error:

01070222:3: VS TestApp_80 server /Common/TestApp.app/gslb-server1 does not exist


Config Output:

root@(F5-Dev)(cfg-sync Standalone)(Active)(/Common)(tmos) list gtm server
gtm server gslb-server1 {
    addresses {
        10.255.255.1 {
            device-name /Common/gslb-server
        }
    }
    datacenter gslb-dc1
    expose-route-domains yes
    link-discovery enabled
    monitor bigip
    virtual-server-discovery enabled
}

Is there anyway to get around this? Or do I need to consider separate deployment options for the GTM options. Ideally all objects related to an object should be managed in one place.

Im not able to find much about GTM/DNS deployments via iapp on codeshare. Any input would be appreciated.

Regards

Dman

3 Replies

  • Hi,

    I do not know entire your iApp and package requires, but I think if you should run
    tmsh::cd ..
    at the top.

    Hope it works!

  • mikeshimkus_111's avatar
    mikeshimkus_111
    Historic F5 Account

    Hi Dman, if you are doing HA, you should be aware that creating certain GTM objects using iApp will cause config sync to fail. This is the reason we don't have an iApp template to deploy GTM yet.

     

    Mike

     

  • Hi Mike

     

    Thanks for the response. I did consider that. Was thinking about calling the GTM_ADD script do something like that. Would that work? As it stands my HA pair only seem to sync LTM objects anyway. Are you sayin that when the dns objects are part of an iapp template it breaks syncing?

     

    If so, what is an acceptable deployment method for GTM ( other than creating loads of objects manually )

     

    thanks

     

    Dman