RavinderReddyF5 / terraform-provider-bigip-version0.12

Terraform resources that can configure F5 BIGIP products
Mozilla Public License 2.0
0 stars 0 forks source link

[CLOSED] Support for priority group for the node #306

Open RavinderReddyF5 opened 4 years ago

RavinderReddyF5 commented 4 years ago

Issue by lukasz-krysman Tuesday Apr 07, 2020 at 07:18 GMT Originally opened as https://github.com/terraform-providers/terraform-provider-bigip/issues/275


Hi, Will you support priority groups for the nodes in the pool in the future? How to achieve in other way than this active/passive loadbalancing? BR, Lukasz

RavinderReddyF5 commented 4 years ago

Comment by focrensh Tuesday Apr 07, 2020 at 14:37 GMT


You can currently achieve this by using the AS3 resource (declarative API). In summary, you will create a declaration that defines your config. You pass that payload to the AS3 resource and then AS3 provisions the BIG-IP.

https://www.terraform.io/docs/providers/bigip/r/bigip_as3.html

Here is an example of an app with a pool.

{
   "class": "AS3",
   "action": "deploy",
   "persist": true,
   "declaration": {
      "class": "ADC",
      "schemaVersion": "3.0.0",
      "id": "testid",
      "label": "Sample 1",
      "remark": "Simple HTTP application with RR pool",
      "Sample_01": {
         "class": "Tenant",
         "A1": {
            "class": "Application",
            "template": "http",
            "serviceMain": {
               "class": "Service_HTTP",
               "virtualAddresses": [
                  "10.0.1.10"
               ],
               "pool": "web_pool"
            },
            "web_pool": {
               "class": "Pool",
               "monitors": [
                  "http"
               ],
               "members": [{
                  "servicePort": 80,
                  "priorityGroup": 1,
                  "serverAddresses": [
                     "192.0.1.10",
                     "192.0.1.11"
                  ]
               }]
            }
         }
      }
   }
}
RavinderReddyF5 commented 4 years ago

Comment by focrensh Tuesday Apr 28, 2020 at 14:46 GMT


Please open a new issue if this approach is not working for you.